Skip to content

Commit e40125a

Browse files
tacaswellQuLogic
authored andcommitted
Backport PR matplotlib#28293 and matplotlib#28668: Enable 3.13 wheels and bump cibuildwheel
This is the commit message #1: > Merge pull request matplotlib#28293 from QuLogic/py313 > > BLD: Enable building Python 3.13 wheels for nightlies (cherry picked from commit 725ee99) This is the commit message #2: > Merge pull request matplotlib#28668 from matplotlib/dependabot/github_actions/actions-167bd8b160 > > Bump the actions group with 2 updates (cherry picked from commit fd42e7d)
1 parent 8a8fe61 commit e40125a

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/cibuildwheel.yml

+25-5
Original file line numberDiff line numberDiff line change
@@ -134,24 +134,44 @@ jobs:
134134
name: cibw-sdist
135135
path: dist/
136136

137+
- name: Build wheels for CPython 3.13
138+
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
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_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
138-
uses: pypa/cibuildwheel@7e5a838a63ac8128d71ab2dfd99e4634dd1bca09 # v2.19.2
158+
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
139159
with:
140160
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
141161
env:
142162
CIBW_BUILD: "cp312-*"
143163
CIBW_ARCHS: ${{ matrix.cibw_archs }}
144164

145165
- name: Build wheels for CPython 3.11
146-
uses: pypa/cibuildwheel@7e5a838a63ac8128d71ab2dfd99e4634dd1bca09 # v2.19.2
166+
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
147167
with:
148168
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
149169
env:
150170
CIBW_BUILD: "cp311-*"
151171
CIBW_ARCHS: ${{ matrix.cibw_archs }}
152172

153173
- name: Build wheels for CPython 3.10
154-
uses: pypa/cibuildwheel@7e5a838a63ac8128d71ab2dfd99e4634dd1bca09 # v2.19.2
174+
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
155175
with:
156176
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
157177
env:
@@ -167,7 +187,7 @@ jobs:
167187
CIBW_ARCHS: ${{ matrix.cibw_archs }}
168188

169189
- name: Build wheels for PyPy
170-
uses: pypa/cibuildwheel@7e5a838a63ac8128d71ab2dfd99e4634dd1bca09 # v2.19.2
190+
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
171191
with:
172192
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
173193
env:
@@ -203,7 +223,7 @@ jobs:
203223
run: ls dist
204224

205225
- name: Generate artifact attestation for sdist and wheel
206-
uses: actions/attest-build-provenance@5e9cb68e95676991667494a6a4e59b8a2f13e1d0 # v1.3.3
226+
uses: actions/attest-build-provenance@210c1913531870065f03ce1f9440dd87bc0938cd # v1.4.0
207227
with:
208228
subject-path: dist/matplotlib-*
209229

0 commit comments

Comments
 (0)