Skip to content

Commit 07ec305

Browse files
committed
BLD: Enable building Python 3.13 wheels for nightlies
1 parent e6f2b0c commit 07ec305

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/cibuildwheel.yml

+20
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,26 @@ 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+
CIBW_SKIP: "cp313t-win_amd64" # No free-threading wheels for NumPy.
144+
CIBW_BUILD_FRONTEND:
145+
"pip; args: --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
146+
CIBW_PRERELEASE_PYTHONS: true
147+
CIBW_FREE_THREADED_SUPPORT: true
148+
# No free-threading wheels available for aarch64 on Pillow.
149+
CIBW_TEST_SKIP: "cp313t-manylinux_aarch64"
150+
# We need pre-releases to get the nightly wheels.
151+
CIBW_BEFORE_TEST: >-
152+
pip install --pre
153+
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
154+
contourpy numpy pillow
155+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
156+
137157
- name: Build wheels for CPython 3.12
138158
uses: pypa/cibuildwheel@7e5a838a63ac8128d71ab2dfd99e4634dd1bca09 # v2.19.2
139159
with:

0 commit comments

Comments
 (0)