Skip to content

Commit 19e32f9

Browse files
Bissbertclaude
andcommitted
Remove pure Python wheel job from publish workflow
The scikit-build-core backend always builds native code, producing platform-specific wheels. Removed the job as it was uploading invalid wheels with linux_x86_64 platform tag (PyPI requires manylinux). Users on unsupported platforms can install from source distribution. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 512d326 commit 19e32f9

1 file changed

Lines changed: 4 additions & 39 deletions

File tree

.github/workflows/pypi-publish.yml

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ jobs:
9494
# Publish to PyPI
9595
publish:
9696
name: Publish to PyPI
97-
needs: [build-wheels, build-sdist, build-pure-python]
98-
if: always() && needs.build-sdist.result == 'success' && needs.build-pure-python.result == 'success'
97+
needs: [build-wheels, build-sdist]
98+
if: always() && needs.build-sdist.result == 'success'
9999
runs-on: ubuntu-latest
100100
environment: pypi
101101
permissions:
@@ -129,40 +129,5 @@ jobs:
129129
run: |
130130
gh release upload ${{ github.event.release.tag_name }} dist/* --clobber
131131
132-
# Build pure-Python fallback wheel (for platforms without native support)
133-
build-pure-python:
134-
name: Build pure Python wheel
135-
runs-on: ubuntu-latest
136-
steps:
137-
- uses: actions/checkout@v4
138-
139-
- name: Set up Python
140-
uses: actions/setup-python@v5
141-
with:
142-
python-version: '3.11'
143-
144-
- name: Install build tools
145-
run: pip install build
146-
147-
- name: Build pure Python wheel
148-
run: python -m build --wheel
149-
env:
150-
# Skip native build
151-
SKIP_NATIVE_BUILD: "1"
152-
CMAKE_ARGS: "-DSKIP_BUILD=ON"
153-
154-
- name: Rename to indicate pure Python
155-
run: |
156-
cd dist
157-
for f in *.whl; do
158-
# Only rename if it's a platform-specific wheel
159-
if [[ "$f" != *"py3-none-any"* ]]; then
160-
echo "Note: Pure Python wheel built as: $f"
161-
fi
162-
done
163-
164-
- name: Upload pure Python wheel
165-
uses: actions/upload-artifact@v4
166-
with:
167-
name: wheel-pure-python
168-
path: dist/*.whl
132+
# Note: Pure Python fallback removed - scikit-build-core always builds native
133+
# Users on unsupported platforms can install from source dist

0 commit comments

Comments
 (0)