Skip to content

Commit

Permalink
Fix dirty version when building with CIBW (#2855)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjsi committed Mar 22, 2022
1 parent 68d30b5 commit 96af4fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pypi-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BEFORE_BUILD: pip install -r ci/requirements-wheel.txt
CIBW_BEFORE_BUILD: git reset --hard && pip install -r ci/requirements-wheel.txt
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_SKIP: pp* *-musllinux* cp36-* cp310-win32 *i686 cp310-manylinux_x86_64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
Expand All @@ -41,13 +41,14 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' && matrix.arch == 'auto'}}
uses: pypa/[email protected]
env:
CIBW_BEFORE_BUILD: pip install -r ci/requirements-wheel.txt
CIBW_BEFORE_BUILD: git reset --hard && pip install -r ci/requirements-wheel.txt
CIBW_BUILD: cp310-manylinux_x86_64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

- name: Build source
if: ${{ matrix.os == 'ubuntu-latest' && matrix.arch == 'auto'}}
run: |
git reset --hard
pip install -r ci/requirements-wheel.txt
python setup.py sdist --formats=gztar --dist-dir=./wheelhouse
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*.egg
*.egg-info
dist
wheelhouse
build/
eggs
parts
Expand Down

0 comments on commit 96af4fa

Please sign in to comment.