Skip to content

Commit 725ee99

Browse files
authored
Merge pull request #28293 from QuLogic/py313
BLD: Enable building Python 3.13 wheels for nightlies
2 parents bdbbb2d + fb5fb58 commit 725ee99

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/cibuildwheel.yml

+21
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,27 @@ jobs:
134134
name: cibw-sdist
135135
path: dist/
136136

137+
- name: Build wheels for CPython 3.13
138+
uses: pypa/cibuildwheel@7e5a838a63ac8128d71ab2dfd99e4634dd1bca09 # v2.19.2
139+
with:
140+
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
141+
env:
142+
CIBW_BUILD: "cp313-* cp313t-*"
143+
# No free-threading wheels for NumPy; musllinux skipped for main builds also.
144+
CIBW_SKIP: "cp313t-win_amd64 *-musllinux_aarch64"
145+
CIBW_BUILD_FRONTEND:
146+
"pip; args: --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
147+
CIBW_PRERELEASE_PYTHONS: true
148+
CIBW_FREE_THREADED_SUPPORT: true
149+
# No free-threading wheels available for aarch64 on Pillow.
150+
CIBW_TEST_SKIP: "cp313t-manylinux_aarch64"
151+
# We need pre-releases to get the nightly wheels.
152+
CIBW_BEFORE_TEST: >-
153+
pip install --pre
154+
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
155+
contourpy numpy pillow
156+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
157+
137158
- name: Build wheels for CPython 3.12
138159
uses: pypa/cibuildwheel@7e5a838a63ac8128d71ab2dfd99e4634dd1bca09 # v2.19.2
139160
with:

0 commit comments

Comments
 (0)