Skip to content

Commit 6e53543

Browse files
authored
Merge pull request #26672 from QuLogic/cibw-backport
Backport cibuildwheel updates to v3.7.x
2 parents e2a3029 + 8bd2b1e commit 6e53543

File tree

1 file changed

+48
-7
lines changed

1 file changed

+48
-7
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,32 @@ 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* *win32*"
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
73-
uses: pypa/cibuildwheel@v2.12.1
97+
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
7498
env:
7599
CIBW_BUILD: "cp311-*"
76100
CIBW_SKIP: "*-musllinux*"
@@ -83,7 +107,7 @@ jobs:
83107
CIBW_ARCHS: ${{ matrix.cibw_archs }}
84108

85109
- name: Build wheels for CPython 3.10
86-
uses: pypa/cibuildwheel@v2.12.1
110+
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
87111
env:
88112
CIBW_BUILD: "cp310-*"
89113
CIBW_SKIP: "*-musllinux*"
@@ -96,7 +120,7 @@ jobs:
96120
CIBW_ARCHS: ${{ matrix.cibw_archs }}
97121

98122
- name: Build wheels for CPython 3.9
99-
uses: pypa/cibuildwheel@v2.12.1
123+
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
100124
env:
101125
CIBW_BUILD: "cp39-*"
102126
CIBW_SKIP: "*-musllinux*"
@@ -109,7 +133,7 @@ jobs:
109133
CIBW_ARCHS: ${{ matrix.cibw_archs }}
110134

111135
- name: Build wheels for CPython 3.8
112-
uses: pypa/cibuildwheel@v2.12.0
136+
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
113137
env:
114138
CIBW_BUILD: "cp38-*"
115139
CIBW_SKIP: "*-musllinux*"
@@ -121,17 +145,34 @@ jobs:
121145
MPL_DISABLE_FH4: "yes"
122146
CIBW_ARCHS: ${{ matrix.cibw_archs }}
123147

124-
- name: Build wheels for PyPy
125-
uses: pypa/cibuildwheel@v2.12.1
148+
- name: Build wheels for PyPy 3.8
149+
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
126150
env:
127-
CIBW_BUILD: "pp38-* pp39-*"
151+
CIBW_BUILD: "pp38-*"
128152
CIBW_SKIP: "*-musllinux*"
129153
CIBW_BEFORE_BUILD: >-
130154
pip install certifi oldest-supported-numpy &&
131155
git clean -fxd build
132156
CIBW_ARCHS: ${{ matrix.cibw_archs }}
133157
if: matrix.cibw_archs != 'aarch64'
134158

159+
- name: Build wheels for PyPy 3.9
160+
uses: pypa/cibuildwheel@39a63b5912f086dd459cf6fcb13dcdd3fe3bc24d # v2.15.0
161+
env:
162+
CIBW_BUILD: "pp39-*"
163+
CIBW_SKIP: "*-musllinux*"
164+
CIBW_BEFORE_BUILD: >-
165+
pip install certifi "Cython>=0.29.34,<3.0" "pybind11>=2.6" "setuptools>=42" "setuptools_scm>=7" &&
166+
pip install "numpy>=1.25" &&
167+
git clean -fxd build
168+
CIBW_BEFORE_BUILD_WINDOWS: >-
169+
pip install certifi delvewheel "pybind11>=2.6" "setuptools>=42" "setuptools_scm>=7" &&
170+
pip install "numpy>=1.25" &&
171+
git clean -fxd build
172+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
173+
CIBW_ENVIRONMENT: PIP_NO_BUILD_ISOLATION=0 PIP_NO_DEPENDENCIES=0
174+
if: matrix.cibw_archs != 'aarch64'
175+
135176
- name: Validate that LICENSE files are included in wheels
136177
run: |
137178
python3 ./ci/check_wheel_licenses.py

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy