From 6d126ad4a81c2212b17a7a185e54bdc727de4679 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 10 Oct 2024 12:56:47 -0700 Subject: [PATCH] Wheels: 0.16.0 (#1677) * Wheels: 0.16.0 Update the cibuildwheel reference tracking to the 0.16.0 release. * [Patch] Fix 0.16.0 versions Include https://github.com/openPMD/openPMD-api/pull/1680 --- .github/workflows/build.yml | 27 +++++++++++++-------------- .travis.yml | 23 +++++++++-------------- 2 files changed, 22 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82da3d0481..0edb7b8334 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,7 +70,7 @@ jobs: - uses: actions/checkout@v4 with: path: 'src' - ref: '0.15.2' + ref: '0.16.0' - uses: actions/checkout@v4 with: @@ -86,19 +86,18 @@ jobs: python -m pip install --upgrade pip setuptools wheel python -m pip install cibuildwheel==2.21.2 - # Hack: cmake --trace-expand - #- name: Download Patch 2/2 - # uses: suisei-cn/actions-download-file@v1 - # id: setupversion - # with: - # url: "https://gist.githubusercontent.com/ax3l/9b15c5bc73d7f3c1c66784187a016474/raw/e31dd54498c9c8fc465a7cbb6f900f768b9d0c0b/0001-Hack-setup.py-CMake-trace-expand.patch" - # target: src/.patch/ - - #- name: Apply Patches - # run: | - # python -m pip install patch - # cd src - # python -m patch .patch/0001-Hack-setup.py-CMake-trace-expand.patch + # Patch: Fix versioning + - name: Download Patch 1/1 + uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9 # 1.6.0 + id: setupversion + with: + url: "https://github.com/openPMD/openPMD-api/pull/1680.patch" + target: src/.patch/ + + - name: Apply Patches + run: | + cd src + git apply --exclude=.github/workflows/windows.yml .patch/1680.patch - name: Build wheel env: diff --git a/.travis.yml b/.travis.yml index c6c4ec4f56..2f092e4fb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ branches: env: global: - - OPENPMD_GIT_REF="0.15.2" + - OPENPMD_GIT_REF="0.16.0" - CIBW_PROJECT_REQUIRES_PYTHON=">=3.9" # Install dependencies on Linux and OSX @@ -144,19 +144,14 @@ install: - python -m pip install patch # Download & Apply Patches -#before_script: -# - mkdir -p src/.patch -# - cd src/.patch -# - curl -sOL https://github.com/ax3l/openPMD-api/commit/b622cc5ea770f866c1e373185a9e389c04bdb54c.patch -# - curl -sOL https://github.com/ax3l/openPMD-api/commit/a1aac530dbc8261656cf6a07900374bc6ac6fcab.patch -# - curl -sOL https://github.com/ax3l/openPMD-api/commit/43c4bf4327616e9cf7e7992d91d9b8ccd4ee3a83.patch -# - curl -sOL https://gist.githubusercontent.com/ax3l/5e83edefe4b05cf6aa2a971649285fe0/raw/023cbd69e06715e5191ece741bb1de56560a9f96/0001-Bump-setup.py.patch -# - cd .. -# - python -m patch .patch/b622cc5ea770f866c1e373185a9e389c04bdb54c.patch -# - python -m patch .patch/a1aac530dbc8261656cf6a07900374bc6ac6fcab.patch -# - python -m patch .patch/43c4bf4327616e9cf7e7992d91d9b8ccd4ee3a83.patch -# - python -m patch .patch/0001-Bump-setup.py.patch -# - cd .. +before_script: + - mkdir -p src/.patch + - cd src/.patch + - curl -sOL https://github.com/openPMD/openPMD-api/pull/1680.patch + - cd .. + - ls -hal .patch/ + - git apply --exclude=.github/workflows/windows.yml .patch/1680.patch + - cd .. script: - cd src