fix: pypi conform platform tagging
This commit is contained in:
parent
ed2f9a9634
commit
d7614bdd18
1 changed files with 8 additions and 3 deletions
|
|
@ -26,16 +26,21 @@ jobs:
|
|||
.
|
||||
|
||||
- name: Install build tools
|
||||
run: pip install build Cython twine
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y patchelf
|
||||
pip install build Cython twine auditwheel
|
||||
|
||||
- name: Build wheel
|
||||
run: python -m build --wheel
|
||||
|
||||
- name: Repair wheel to manylinux
|
||||
run: auditwheel repair dist/*.whl --wheel-dir wheelhouse/
|
||||
|
||||
- name: Check wheel metadata
|
||||
run: twine check dist/*.whl
|
||||
run: twine check wheelhouse/*.whl
|
||||
|
||||
- name: Publish to PyPI
|
||||
env:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||
run: twine upload --verbose dist/*.whl
|
||||
run: twine upload --verbose wheelhouse/*.whl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue