Skip to content

Commit

Permalink
add 3.12 limited api wheels
Browse files Browse the repository at this point in the history
temporarily, for testing
  • Loading branch information
minrk committed Dec 12, 2024
1 parent 4047660 commit c760755
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
resource_class: arm.medium

environment:
CIBW_SKIP: "cp312-* cp313-* << parameters.skip >>"
CIBW_SKIP: "<< parameters.skip >>"
CIBW_BUILD: "<< parameters.build >>"
CIBW_PRERELEASE_PYTHONS: "1"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
env:
MACOSX_DEPLOYMENT_TARGET: "10.9"
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
CIBW_SKIP: "cp312-* cp313-* ${{ matrix.cibw.skip || '' }}"
CIBW_SKIP: "${{ matrix.cibw.skip || '' }}"
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_x86_64_image || '' }}"

Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ file(MAKE_DIRECTORY ${ZMQ_BACKEND_DEST})
if(NOT "${SKBUILD_SABI_COMPONENT}" STREQUAL "")
# set stable API
# assume we are targeting >= current Python version
# this isn't required, but we can't seem to get `wheel.py-api
message("SKBUILD_LIMITED_API=${SKBUILD_LIMITED_API}")
# this isn't required, but we can't seem to get `wheel.py-api`
# see https://github.com/scikit-build/scikit-build-core/issues/958
set(SABI_ARG "USE_SABI;${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}")
message("Building with stable API ${SABI_ARG} for ${Python_SOABI}")
endif()
Expand Down
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ repair-wheel-command = """\
# mac-arm target is 10.15
[[tool.cibuildwheel.overrides]]
select = "*macos*{universal2,arm64}*"
environment = { ZMQ_PREFIX = "/tmp/zmq", MACOSX_DEPLOYMENT_TARGET = "10.15" }
inherit.environment = "append"
"environment.MACOSX_DEPLOYMENT_TARGET" = "10.15"

# manylinux2010 for (less) old cp37-9, pp37-8
[[tool.cibuildwheel.overrides]]
Expand All @@ -207,7 +208,16 @@ manylinux-i686-image = "manylinux2010"
# build limited-api wheels for 3.11
[[tool.cibuildwheel.overrides]]
select = "cp311-*"
config-settings = { "wheel.py-api" = "cp311" }
inherit.config-settings = "append"
config-settings."wheel.py-api" = "cp311"
inherit.repair-wheel-command = "append"
repair-wheel-command = ["abi3audit", "--strict", "--report" , "{wheel}"]

# for benchmarking, build limited cp312 as well
[[tool.cibuildwheel.overrides]]
select = "cp312-*"
inherit.config-settings = "append"
config-settings."wheel.py-api" = "cp312"

# note: manylinux_2_28 builds are added
# in .github/workflows/wheels.yml
Expand Down

0 comments on commit c760755

Please sign in to comment.