@@ -27,19 +27,20 @@ jobs:
27
27
- name : Set up Python
28
28
uses : actions/setup-python@v4
29
29
with :
30
- python-version : " >=3.10 .0"
30
+ python-version : " >=3.11 .0"
31
31
32
32
- name : Verify QuadBLAS submodule
33
33
run : |
34
34
ls -la quaddtype/numpy_quaddtype/QBLAS/
35
35
ls -la quaddtype/numpy_quaddtype/QBLAS/include/quadblas/
36
36
37
37
- name : Install cibuildwheel
38
- run : pip install cibuildwheel==2.20.0
38
+ run : pip install cibuildwheel==3.1.4
39
39
40
40
- name : Build wheels
41
41
env :
42
- CIBW_BUILD : " cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64"
42
+ CIBW_BUILD : " cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 cp313-manylinux_x86_64 cp313t-manylinux_x86_64 cp314-manylinux_x86_64 cp314t-manylinux_x86_64"
43
+ CIBW_ENABLE : cpython-prerelease cpython-freethreading
43
44
CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
44
45
CIBW_BUILD_VERBOSITY : " 3"
45
46
CIBW_BEFORE_ALL : |
64
65
auditwheel repair -w {dest_dir} --plat manylinux_2_28_x86_64 {wheel}
65
66
CIBW_TEST_COMMAND : |
66
67
pip install {package}[test]
67
- pytest -s {project}/tests
68
+ if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then
69
+ pytest --parallel-threads=10 --iterations=10 {project}/tests
70
+ else
71
+ pytest -s {project}/tests
72
+ fi
68
73
CIBW_TEST_EXTRAS : " test"
69
74
run : |
70
75
python -m cibuildwheel --output-dir wheelhouse
90
95
- name : Set up Python
91
96
uses : actions/setup-python@v4
92
97
with :
93
- python-version : " 3.10 "
98
+ python-version : " >=3.11.0 "
94
99
95
100
- name : Install dependencies
96
101
run : |
@@ -117,12 +122,16 @@ jobs:
117
122
ls -la quaddtype/numpy_quaddtype/QBLAS/
118
123
ls -la quaddtype/numpy_quaddtype/QBLAS/include/quadblas/
119
124
120
- - name : Install cibuildwheel
121
- run : pip install cibuildwheel==2.20.0
125
+ - name : Installing Python dependencies
126
+ run : |
127
+ pip install -U pip
128
+ pip install cibuildwheel==3.1.4
129
+ pip install pytest-run-parallel
122
130
123
131
- name : Build wheels
124
132
env :
125
- CIBW_BUILD : " cp310-* cp311-* cp312-*"
133
+ CIBW_BUILD : " cp310-* cp311-* cp312-* cp313-* cp314-* cp313t-* cp314t-*"
134
+ CIBW_ENABLE : cpython-prerelease cpython-freethreading
126
135
CIBW_ARCHS_MACOS : ${{ matrix.os == 'macos-13' && 'x86_64' || 'arm64' }}
127
136
CIBW_BUILD_VERBOSITY : " 3"
128
137
CIBW_ENVIRONMENT : >
@@ -136,7 +145,11 @@ jobs:
136
145
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
137
146
CIBW_TEST_COMMAND : |
138
147
pip install {package}[test]
139
- pytest -s {project}/tests
148
+ if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then
149
+ pytest --parallel-threads=10 --iterations=10 {project}/tests
150
+ else
151
+ pytest -s {project}/tests
152
+ fi
140
153
CIBW_TEST_EXTRAS : " test"
141
154
run : |
142
155
python -m cibuildwheel --output-dir wheelhouse
@@ -165,10 +178,10 @@ jobs:
165
178
with :
166
179
arch : ${{ matrix.architecture }}
167
180
168
- - name : Set up Python 3.10
181
+ - name : Set up Python
169
182
uses : actions/setup-python@v4
170
183
with :
171
- python-version : " 3.10 "
184
+ python-version : " >=3.11.0 "
172
185
architecture : ${{ matrix.architecture }}
173
186
174
187
- name : Install CMake
@@ -193,12 +206,13 @@ jobs:
193
206
shell : bash -l {0}
194
207
run : |
195
208
pip install -U pip
196
- pip install cibuildwheel==2.20.0 ninja meson meson-python numpy delvewheel pytest
209
+ pip install cibuildwheel==3.1.4 ninja meson meson-python numpy delvewheel pytest
197
210
198
211
- name : Build wheels
199
212
env :
200
- CIBW_BUILD : " cp310-* cp311-* cp312-*"
201
- CIBW_SKIP : " pp* cp36-* cp37-* cp38-* cp39-* cp313-*"
213
+ CIBW_BUILD : " cp310-* cp311-* cp312-* cp313-* cp314-* cp313t-* cp314t-*"
214
+ CIBW_ENABLE : cpython-prerelease cpython-freethreading
215
+ CIBW_SKIP : " pp* cp36-* cp37-* cp38-* cp39-*"
202
216
CIBW_ARCHS_WINDOWS : ${{ matrix.architecture == 'x86' && 'x86' || 'AMD64' }}
203
217
CIBW_BUILD_VERBOSITY : " 3"
204
218
DISTUTILS_USE_SDK : " 1"
@@ -215,7 +229,11 @@ jobs:
215
229
CIBW_REPAIR_WHEEL_COMMAND : ' delvewheel repair -w {dest_dir} {wheel} --add-path C:\sleef\bin'
216
230
CIBW_TEST_COMMAND : |
217
231
pip install {package}[test]
218
- pytest -s {project}/tests
232
+ if python -c "import sys; exit(0 if hasattr(sys, '_is_gil_enabled') and not sys._is_gil_enabled() else 1)"; then
233
+ pytest --parallel-threads=10 --iterations=10 {project}/tests
234
+ else
235
+ pytest -s {project}/tests
236
+ fi
219
237
CIBW_TEST_EXTRAS : test
220
238
CIBW_TEST_FAIL_FAST : 1
221
239
shell : pwsh
0 commit comments