Skip to content

Commit

Permalink
[Patch] Fix 0.16.0 versions
Browse files Browse the repository at this point in the history
Include #1680
  • Loading branch information
ax3l committed Oct 10, 2024
1 parent 15692b8 commit 4013c07
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 26 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .patch/1680.patch
- name: Build wheel
env:
Expand Down
21 changes: 8 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .patch/1680.patch
- cd ..

script:
- cd src
Expand Down

0 comments on commit 4013c07

Please sign in to comment.