Skip to content

Commit 1d399fa

Browse files
committed
ci: Tag stable abi wheels as abi3
We've been limiting ourselves to the stable ABI for Python 3.12+, but we haven't been tagging those stable ABI wheels as `abi3`. Fix this, allowing the wheels built for Python 3.12 to be used for 3.13, 3.14, and 3.15 as well. Note that nanobind does not yet support `abi3t`, so free-threaded wheels are still built per-version. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
1 parent c200f09 commit 1d399fa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ install.strip = false
6666
wheel.packages = ["src/pystack"]
6767
wheel.install-dir = "pystack"
6868
wheel.exclude = ["pystack/_pystack/**"]
69+
# Build against the CPython Limited API / stable ABI so that CPython >= 3.12
70+
# non-free-threaded builds produce a single cp312-abi3 wheel. scikit-build-core
71+
# automatically ignores this for older Pythons (< 3.12) and for free-threaded
72+
# interpreters, which continue to produce version-specific wheels.
73+
wheel.py-api = "cp312"
6974
metadata.version.provider = "scikit_build_core.metadata.regex"
7075
metadata.version.input = "src/pystack/_version.py"
7176
sdist.include = ["src/pystack/_version.py"]

0 commit comments

Comments
 (0)