ci: build CPython 3.14 wheels (bump cibuildwheel to 4.x)#730
Merged
Conversation
The release wheel job pinned pypa/cibuildwheel@v2.21.3 (Oct 2024), which predates CPython 3.14. cibuildwheel only builds the interpreters its own release knows about, so `build = "cp3*"` expanded to at most cp313 and no 3.14 wheels were ever produced or uploaded to PyPI for 0.12.0/0.12.1 -- a local install on 3.14 has to compile from the sdist (issue #715). The test matrix separately tests 3.14 via setup-python, which is why the gap only showed up in the published wheels. Bump the action to v4.1.0, which builds CPython 3.14 by default (since cibuildwheel 3.1) and still supports cp310-cp313. Because free-threading is no longer experimental in 3.14, cibuildwheel would now also build free-threaded (cp314t) wheels by default; the Cython extension has not been validated under a no-GIL interpreter, so skip `cp31?t-*` for now. Verified with `cibuildwheel --print-build-identifiers` that the linux build set is now cp310..cp314 manylinux_x86_64 (no cp314t, no musllinux). The manylinux2014 image shorthand and the existing build/skip/archs/before-build options remain valid in 4.x. Fixes #715 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HHPL4VFWQRQPpjR1gXSKyL
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #730 +/- ##
=======================================
Coverage 94.18% 94.18%
=======================================
Files 104 104
Lines 11154 11154
Branches 1202 1202
=======================================
Hits 10505 10505
Misses 548 548
Partials 101 101 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #715. Re-opens #718 onto
master— #718 was merged into its stale stacked-parent branch (claude/ci-confluent-driver-matrix) instead ofmaster, so its content never reachedmaster. This branch is the same commit cherry-picked directly ontomaster, independent of any chain.No CPython 3.14 wheels were published for 0.12.0/0.12.1, so installing on 3.14 forces a source build.
Root cause
The release
build_wheelsjob pinnedpypa/cibuildwheel@v2.21.3(Oct 2024), which predates CPython 3.14. cibuildwheel only builds the interpreters its own release knows about, sobuild = "cp3*"expanded to at mostcp313— nocp314wheels were produced.Fix
pypa/cibuildwheel@v4.1.0, which builds CPython 3.14 by default and still supports cp310–cp313.cp31?t-*toskip, since 4.x would otherwise build free-threaded (cp314t) wheels and faust's Cython extension hasn't been validated under a no-GIL interpreter.Verification
cibuildwheel --print-build-identifiers --platform linuxnow lists cp310–cp314 manylinux, withcp314tand musllinux correctly excluded. Wheels are only produced on arelease: createdevent, so this takes effect on the next tagged release.🤖 Generated with Claude Code
Generated by Claude Code