Skip to content

Commit

Permalink
Patch: #1287 / #1288
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jun 8, 2022
1 parent 0496ca4 commit 4c0ba28
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
python -m pip install cibuildwheel==2.2.2
# - name: Download Patch 1/1
# uses: suisei-cn/actions-download-file@v1
# id: setupversion
# with:
# url: "https://gist.githubusercontent.com/ax3l/4db2f1744e0e28e6c013ee4e752b3cb7/raw/324bdb60894d51608a48890573654e10e1b1c3a0/setupversion.patch"
# target: src/.patch/

# - name: Apply Patch
# run: |
# python -m pip install "patch==1.*"
# cd src
# python -m patch .patch/setupversion.patch
- name: Download Patch 1/1
uses: suisei-cn/actions-download-file@v1
id: setupversion
with:
url: "https://github.com/ax3l/openPMD-api/commit/dfd65f23af7f907851d44ceb9e3aebdd05b4045f.patch"
target: src/.patch/

- name: Apply Patch
run: |
python -m pip install "patch==1.*"
cd src
python -m patch .patch/dfd65f23af7f907851d44ceb9e3aebdd05b4045f.patch
- name: Build wheel
env:
Expand Down
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ install:
- python3 -m pip install "patch==1.*"

# Download & Apply Patches
#before_script:
# - mkdir -p src/.patch
# - cd src/.patch
# - curl -sOL https://gist.githubusercontent.com/ax3l/4db2f1744e0e28e6c013ee4e752b3cb7/raw/324bdb60894d51608a48890573654e10e1b1c3a0/setupversion.patch
# - cd ..
# - python3 -m patch .patch/setupversion.patch
# - cd ..
before_script:
- mkdir -p src/.patch
- cd src/.patch
- curl -sOL https://github.com/ax3l/openPMD-api/commit/dfd65f23af7f907851d44ceb9e3aebdd05b4045f.patch
- cd ..
- python3 -m patch .patch/dfd65f23af7f907851d44ceb9e3aebdd05b4045f.patch
- cd ..

script:
- cd src
Expand Down

0 comments on commit 4c0ba28

Please sign in to comment.