Skip to content

Commit db120b3

Browse files
committed
Adding PyPi
1 parent f1d1fe8 commit db120b3

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/build-wheels.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,27 @@ jobs:
7070
run: python -m build
7171
env:
7272
GITHUB_ACTIONS: true
73-
73+
74+
- name: Repair Linux wheels
75+
if: runner.os == 'Linux'
76+
run: |
77+
pip install auditwheel
78+
for whl in dist/*.whl; do
79+
auditwheel repair "$whl" -w dist/repaired/
80+
done
81+
# Replace original wheels with repaired ones
82+
rm dist/*.whl
83+
mv dist/repaired/*.whl dist/
84+
rmdir dist/repaired
85+
86+
- name: Repair macOS wheels
87+
if: runner.os == 'macOS'
88+
run: |
89+
pip install delocate
90+
for whl in dist/*.whl; do
91+
delocate-wheel -v "$whl"
92+
done
93+
7494
- name: Upload artifacts
7595
uses: actions/upload-artifact@v4
7696
with:

.github/workflows/pypi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ jobs:
3838
uses: pypa/gh-action-pypi-publish@release/v1
3939
with:
4040
packages-dir: dist/
41+
skip-existing: true

0 commit comments

Comments
 (0)