Skip to content

Commit 1f33a72

Browse files
committed
Add back PyPy builds
1 parent 171d053 commit 1f33a72

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ limited-api = true
2727
install = ['--skip-subprojects']
2828

2929
[tool.cibuildwheel]
30-
# Build only with Python 3.10 to get cp310-abi3 wheels that work on all 3.10+
31-
build = ["cp310-*"]
32-
skip = ["pp*"]
30+
# Build cp310 for abi3 wheels (works on all CPython 3.10+) and PyPy
31+
build = ["cp310-*", "pp310-*"]
3332

3433
[tool.cibuildwheel.linux]
3534
archs = ["auto", "aarch64"]
@@ -39,12 +38,18 @@ CC = "gcc"
3938

4039
[tool.cibuildwheel.macos]
4140
archs = ["x86_64", "arm64"]
41+
skip = ["pp*"]
4242

4343
[[tool.cibuildwheel.overrides]]
4444
select = "*-musllinux*"
4545
before-all = "apk add clang"
4646
environment = {CC = "clang"}
4747

48+
# PyPy doesn't support limited API, so disable it for PyPy builds
49+
[[tool.cibuildwheel.overrides]]
50+
select = "pp*"
51+
config-settings = {"setup-args" = "-Dpython.allow_limited_api=false"}
52+
4853
[tool.isort]
4954
profile = "black"
5055
line_length = 100

0 commit comments

Comments
 (0)