Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80e55b2

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

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,30 @@ 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+
env:
75+
CIBW_BUILD: "cp312-*"
76+
CIBW_SKIP: "*-musllinux* *i686*"
77+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
78+
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
79+
MPL_DISABLE_FH4: "yes"
80+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
81+
# Remove this once NumPy with Python 3.12 wheels is not pre-release.
82+
CIBW_BEFORE_BUILD: >-
83+
pip install certifi "Cython>=0.29.34,<3.1" "pybind11>=2.6" "pyproject-metadata >= 0.7.1" "setuptools>=60" "setuptools_scm>=7" &&
84+
pip install --pre "numpy>=1.25" &&
85+
rm -rf {package}/build
86+
CIBW_BEFORE_BUILD_WINDOWS: >-
87+
pip install certifi colorama "Cython>=0.29.34,<3.1" delvewheel "pybind11>=2.6" "pyproject-metadata >= 0.7.1" "setuptools>=60" "setuptools_scm>=7" &&
88+
pip install --pre "numpy>=1.25" &&
89+
rm -rf {package}/build
90+
CIBW_ENVIRONMENT: PIP_NO_BUILD_ISOLATION=0
91+
# Remove this once contourpy has Python 3.12 wheels.
92+
CIBW_BEFORE_TEST: >-
93+
pip install "meson>=1.2.0" "meson-python>=0.13.1" "ninja" "pybind11>=2.10.4" &&
94+
pip install --pre "numpy>=1.25"
95+
7296
- name: Build wheels for CPython 3.11
7397
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
7498
env:

0 commit comments

Comments
 (0)