8000 MNT: Enable wheels for Python 3.12 · matplotlib/matplotlib@7f33036 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f33036

Browse files
committed
MNT: Enable wheels for Python 3.12
(cherry picked from commit 6caa683)
1 parent 27e8a05 commit 7f33036

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,28 @@ jobs:
6969
curl -Lo LICENSE/LICENSE_QHULL
7070
https://github.com/qhull/qhull/raw/2020.2/COPYING.txt
7171
72+
- name: Build wheels for CPython 3.12
73+
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
74+
with:
75+
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
76+
env:
77+
CIBW_BUILD: "cp312-*"
78+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
79+
# Remove this once NumPy with Python 3.12 wheels is not pre-release.
80+
CIBW_BEFORE_BUILD: >-
81+
pip install certifi "pybind11>=2.6" "setuptools>=42" "setuptools_scm>=7" &&
82+
pip install --pre "numpy>=1.25" &&
83+
rm -rf {package}/build
84+
CIBW_BEFORE_BUILD_WINDOWS: >-
85+
pip install certifi delvewheel "pybind11>=2.6" "setuptools>=42" "setuptools_scm>=7" &&
86+
pip install --pre "numpy>=1.25" &&
87+
rm -rf {package}/build
88+
CIBW_ENVIRONMENT: PIP_NO_BUILD_ISOLATION=0
89+
# Remove this once contourpy has Python 3.12 wheels.
90+
CIBW_BEFORE_TEST: >-
91+
pip install "meson>=1.2.0" "meson-python>=0.13.1" "ninja" "pybind11>=2.10.4" &&
92+
pip install --pre "numpy>=1.25"
93+
7294
- name: Build wheels for CPython 3.11
7395
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
7496
env:

0 commit comments

Comments
 (0)
0