Ship stable-ABI (abi3-py311) wheels — one wheel per platform, every CPython ≥ 3.11 - #112
Merged
Conversation
One cp311-abi3 wheel per platform now covers every CPython >= 3.11, including future releases - ending the "new Python, no wheel" cycle (#14, #15). - Cargo.toml: enable pyo3/abi3-py311 (baseline matches requires-python) - publish.yml: drop --find-interpreter; each platform job builds a single abi3 wheel - test.yml: build the wheel once, install that same wheel on CPython 3.11-3.14 and run the suite against it (abi3 promise verified, not assumed); the test matrix no longer needs a Rust toolchain - Readme/CHANGELOG: supported-versions table, free-threaded note Benchmark (min parse time, CPython 3.12, Apple Silicon, two runs each): abi3 1.85-1.88 ms vs version-specific 2.09-2.12 ms - abi3 measured ~11% faster, so no hybrid version-specific wheels are shipped. Part of #101 Signed-off-by: yuriyryabikov <22548029+kurok@users.noreply.github.com>
kurok
force-pushed
the
feature/abi3-wheels
branch
from
July 30, 2026 10:53
0330ea0 to
77d383a
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.
Summary
Implements the abi3 half of #101: wheels now target the CPython stable ABI (
cp311-abi3), so one wheel per platform covers every CPython ≥ 3.11 — including versions that don't exist yet. This permanently ends the "new Python, no wheel" failure mode behind #14 and #15.Changes
pyo3/abi3-py311(baseline matchesrequires-python >= 3.11).--find-interpreter: each platform job builds a single abi3 wheel instead of one per interpreter. Platform matrix unchanged.build-wheeljob builds one manylinux abi3 wheel; the 3.11–3.14 test matrix installs that same wheel and runs the suite against it. The abi3 promise is verified, not assumed. Side effect: the test matrix no longer needs a Rust toolchain — four fewer Rust builds per PR.Benchmark decision (the >5% rule from #101)
Min parse time, CPython 3.12, Apple Silicon (M-series), two runs per configuration,
--benchmark-min-rounds=25:abi3 measured ~11% faster, consistently across runs. Decision: full abi3, no hybrid version-specific wheels. The
check_benchmark.pyfloor (7.0x) is left unchanged: the CI benchmark job builds from source, which is now abi3 by default, and the measured direction is favorable.Free-threaded CPython (deferred, with reasons)
The cp313t/cp314t half of #101 is deferred:
gil_used = false) plus a shared-state audit. Per abi3 stable-ABI wheels + free-threaded CPython support (end the new-Python-no-wheel cycle) #101 that audit must coordinate with the planned lazy-parsing work (Lazy parsing modes: metadata-only sweeps and deferred attachment decoding (mode="metadata"|"lazy") #97), which introduces the main shared-state risk — auditing before it lands would have to be redone.Verification
cp311-abi3-macosx_11_0_arm64wheel installed on CPython 3.11, 3.12, and 3.14: 91/91 tests pass on each (3.13 is covered by the CI matrix).actionlintand YAML parse clean on both workflows;cargo fmt --checkclean.Cross-refs #14 and #15 — those close when the fixed release actually reaches PyPI (blocked on the PEP 541 transfer, pypi/support#11044).