Repository navigation
feat(pypi): select abi3t wheels on free-threaded platforms - #4496
Merged
aignas merged 5 commits intoNov 15, 2026
Merged
Conversation
Collaborator
Author
|
This PR was written by an AI coding agent (Claude Code) working under the direction of @aignas, who reviewed the design and the changes. Review comments will be handled by @aignas, possibly with the help of the agent; any agent-drafted replies or follow-up commits are reviewed by @aignas before being posted. An agent monitors CI only to retry flaky network failures. This comment was generated by an AI agent and reviewed by the user. |
rickeylev
approved these changes
Nov 14, 2026
rickeylev
left a comment
Collaborator
There was a problem hiding this comment.
LGTM
(unreviewed) bot comments incoming
rickeylev
reviewed
Nov 15, 2026
PEP 803 wheels compatible with both GIL-enabled and free-threaded stable ABIs use the compressed `abi3.abi3t` tag, which `whl_target_platforms` previously treated as a single interpreter ABI instead of `None`. Split `abi_tag` on dots when checking for stable ABI tags, reuse `default_platforms()` in test helpers instead of duplicating inline ABI ternaries, and align line wrapping and constant ordering with style conventions.
rickeylev
approved these changes
Nov 15, 2026
aignas
commented
Nov 15, 2026
aignas
left a comment
Collaborator
Author
There was a problem hiding this comment.
Thanks for the extra fixes!
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.
The free-threaded builds could not select the wheels that use the stable ABI
for the free-threaded builds (
abi3t) as specified inPEP 803.
With this change the default
_freethreadedplatforms use the["abi3t", "cp{major}{minor}t"]ABI tags, socp3xtwheels are stillpreferred over
abi3twheels, in the same way ascp3xwheels are preferredover
abi3wheels. The python tag of anabi3twheel is the minimumsupported version, e.g.
cp315-abi3tis selected for Python 3.15 and above,and the GIL-enabled builds only select such wheels if they are also tagged as
abi3(e.g.cp315-abi3.abi3t).abi3tis also treated as a stable ABI tagwhen deriving the target platforms from the wheel tags.