Skip to content

Commit 9973d47

Browse files
ianthomas23ksunden
authored andcommitted
Backport PR matplotlib#30195: ci: Enable wheel builds on Python 3.14'
ci: Enable wheel builds on Python 3.14 (cherry picked from commit c805967)
1 parent e82b493 commit 9973d47

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,27 @@ jobs:
136136
name: cibw-sdist
137137
path: dist/
138138

139+
- name: Build wheels for CPython 3.14
140+
uses: pypa/cibuildwheel@5f22145df44122af0f5a201f93cf0207171beca7 # v3.0.0
141+
with:
142+
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
143+
env:
144+
CIBW_BUILD: "cp314-* cp314t-*"
145+
CIBW_ENABLE: "cpython-freethreading cpython-prerelease"
146+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
147+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
148+
CIBW_BEFORE_TEST: >-
149+
python -m pip install
150+
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
151+
--upgrade --pre --only-binary=:all: contourpy numpy pillow
152+
139153
- name: Build wheels for CPython 3.13
140154
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
141155
with:
142156
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
143157
env:
144158
CIBW_BUILD: "cp313-* cp313t-*"
145159
CIBW_ENABLE: cpython-freethreading
146-
# No free-threading wheels available for aarch64 on Pillow.
147-
CIBW_TEST_SKIP: "cp313t-manylinux_aarch64"
148160
CIBW_ARCHS: ${{ matrix.cibw_archs }}
149161

150162
- name: Build wheels for CPython 3.12
@@ -171,6 +183,14 @@ jobs:
171183
CIBW_BUILD: "cp310-*"
172184
CIBW_ARCHS: ${{ matrix.cibw_archs }}
173185

186+
- name: Build wheels for PyPy
187+
uses: pypa/cibuildwheel@5f22145df44122af0f5a201f93cf0207171beca7 # v3.0.0
188+
with:
189+
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
190+
env:
191+
CIBW_BUILD: "cp310-*"
192+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
193+
174194
- name: Build wheels for PyPy
175195
uses: pypa/cibuildwheel@ee63bf16da6cddfb925f542f2c7b59ad50e93969 # v2.22.0
176196
with:

0 commit comments

Comments
 (0)