From d7614bdd18688547ff2904176076c30080fd6fa9 Mon Sep 17 00:00:00 2001 From: alpha nerd Date: Sun, 12 Apr 2026 16:05:32 +0200 Subject: [PATCH] fix: pypi conform platform tagging --- .forgejo/workflows/publish.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 00b20e6..17f700c 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -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