[ci] Harden the wheels workflow and cibuildwheel configuration - #59
Merged
Conversation
guitargeek
approved these changes
Sep 1, 2026
guitargeek
left a comment
Collaborator
There was a problem hiding this comment.
Thanks a lot!
Consider adding Python 3.15 wheels as well (in a follow-up PR) since the release candidate was published last month: https://blog.python.org/2026/08/python-3150-rc1/
| [tool.cibuildwheel] | ||
| # The build list is policy, not a glob accident: cp314t waits on a | ||
| # free-threading audit (Py_mod_gil, import must not re-enable the GIL); | ||
| # cp315 joins at the 3.15 release, not at the rc cibuildwheel builds. |
Collaborator
There was a problem hiding this comment.
I thought the Python developers recommend the package maintainers to build wheels as soon as the Python release candidate is out? Python 3.15 RC 1 is out already I think.
Collaborator
Author
There was a problem hiding this comment.
Indeed a good idea! I'll follow up with a 3.15 rc wheel matrix. That will need extending the ci-workflows wheels job as we maintain the build-images on that repo. Do you want to drop the policy comments?
Collaborator
Author
There was a problem hiding this comment.
Comments have been cleaned up
aaronj0
force-pushed
the
wheels-hardening
branch
from
September 1, 2026 11:53
1c348a0 to
4173950
Compare
Test Results
|
aaronj0
force-pushed
the
wheels-hardening
branch
from
September 1, 2026 12:05
4173950 to
e862140
Compare
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.
Various suite of mechanical and workflow improvements based on some research on the standards followed by scipy/numpy/pybind11:
Workflow hardening:
persist-credentials: falseon every checkoutif-no-files-found: erroron every artifact uploadzizmor.ymlrecords the action-pin policyArtifact integrity:
git diff --exit-code, plus the pybind-template check).sdist is now tested:
test-sdistjob stages the recipe LLVM, pip-installs the tarball, and runs the smoke and full suites. This matches what numpy and scipy do.cibuildwheel config fixes:
PYTHONSAFEPATH=1in the test env, so imports resolve from the installed wheel rather than the source tree.before-test.cp314t/cp315exclusions documented as policy (verified against v4.2.0 defaults).archs = ["auto64"]with the macos-x86_64 cell: native runners only, no cross-compilation.