47
47
rm -rf dist/
48
48
python -m pip install build
49
49
python -m build --sdist
50
-
50
+
51
51
echo "sdist_artifact_name=$(ls ./dist)" >> "$GITHUB_OUTPUT"
52
52
echo "package_version=$(ls ./dist | sed -En 's/cffi-(.+)\.tar\.gz/\1/p')" >> "$GITHUB_OUTPUT"
53
53
@@ -76,21 +76,21 @@ jobs:
76
76
77
77
- spec: cp39-manylinux_x86_64
78
78
omit: ${{ env.skip_ci_redundant_jobs }}
79
-
79
+
80
80
- spec: cp310-manylinux_x86_64
81
81
omit: ${{ env.skip_ci_redundant_jobs }}
82
82
83
83
- spec: cp311-manylinux_x86_64
84
84
omit: ${{ env.skip_ci_redundant_jobs }}
85
-
85
+
86
86
- spec: cp312-manylinux_x86_64
87
87
omit: ${{ env.skip_ci_redundant_jobs }}
88
88
89
89
- spec: cp313-manylinux_x86_64
90
-
90
+
91
91
- spec: cp313t-manylinux_x86_64
92
92
skip_artifact_upload: 'true'
93
-
93
+
94
94
- spec: cp38-manylinux_i686
95
95
omit: ${{ env.skip_ci_redundant_jobs }}
96
96
@@ -108,10 +108,10 @@ jobs:
108
108
109
109
- spec: cp313-manylinux_i686
110
110
omit: ${{ env.skip_ci_redundant_jobs }}
111
-
111
+
112
112
- spec: cp39-musllinux_x86_64
113
113
omit: ${{ env.skip_ci_redundant_jobs }}
114
-
114
+
115
115
- spec: cp310-musllinux_x86_64
116
116
omit: ${{ env.skip_ci_redundant_jobs }}
117
117
@@ -120,9 +120,9 @@ jobs:
120
120
121
121
- spec: cp312-musllinux_x86_64
122
122
omit: ${{ env.skip_ci_redundant_jobs }}
123
-
123
+
124
124
- spec: cp313-musllinux_x86_64
125
-
125
+
126
126
- spec: cp39-musllinux_i686
127
127
omit: ${{ env.skip_ci_redundant_jobs }}
128
128
@@ -134,14 +134,14 @@ jobs:
134
134
135
135
#- spec: cp312-musllinux_i686 # busted as of 2024-05-17
136
136
# omit: ${{ env.skip_ci_redundant_jobs }}
137
-
137
+
138
138
#- spec: cp313-musllinux_i686 # busted as of 2024-05-17
139
-
139
+
140
140
- spec: cp39-musllinux_aarch64
141
141
foreign_arch: true
142
142
test_args: '{package}/src/c'
143
143
omit: ${{ env.skip_ci_redundant_jobs || env.skip_slow_jobs }}
144
-
144
+
145
145
- spec: cp310-musllinux_aarch64
146
146
foreign_arch: true
147
147
test_args: '{package}/src/c'
@@ -156,12 +156,12 @@ jobs:
156
156
foreign_arch: true
157
157
test_args: '{package}/src/c'
158
158
omit: ${{ env.skip_ci_redundant_jobs || env.skip_slow_jobs }}
159
-
159
+
160
160
- spec: cp313-musllinux_aarch64
161
161
foreign_arch: true
162
162
# test_args: '{package}/src/c'
163
163
omit: ${{ env.skip_slow_jobs}}
164
-
164
+
165
165
- spec: cp38-manylinux_aarch64
166
166
foreign_arch: true
167
167
test_args: '{package}/src/c'
@@ -186,12 +186,12 @@ jobs:
186
186
foreign_arch: true
187
187
test_args: '{package}/src/c'
188
188
omit: ${{ env.skip_slow_jobs || env.skip_ci_redundant_jobs }}
189
-
189
+
190
190
- spec: cp313-manylinux_aarch64
191
191
foreign_arch: true
192
192
# test_args: '{package}/src/c'
193
193
omit: ${{ env.skip_slow_jobs }}
194
-
194
+
195
195
- spec: cp38-manylinux_ppc64le
196
196
foreign_arch: true
197
197
test_args: '{package}/src/c'
@@ -221,7 +221,7 @@ jobs:
221
221
foreign_arch: true
222
222
test_args: '{package}/src/c'
223
223
omit: ${{ env.skip_slow_jobs }}
224
-
224
+
225
225
- spec: cp38-manylinux_s390x
226
226
foreign_arch: true
227
227
test_args: '{package}/src/c'
@@ -299,12 +299,12 @@ jobs:
299
299
CIBW_PRERELEASE_PYTHONS : ' True'
300
300
CIBW_FREE_THREADED_SUPPORT : ' True'
301
301
CIBW_TEST_REQUIRES : pytest pytest-xdist setuptools # 3.12+ no longer includes distutils, just always ensure setuptools is present
302
- CIBW_TEST_COMMAND : PYTHONUNBUFFERED=1 python -m pytest ${{ matrix.test_args || '{project}' }} # default to test all
302
+ CIBW_TEST_COMMAND : PYTHONUNBUFFERED=1 python -m pytest -n auto ${{ matrix.test_args || '{project}' }} # default to test all
303
303
run : |
304
304
set -eux
305
-
305
+
306
306
mkdir cffi
307
-
307
+
308
308
tar zxf ${{ steps.fetch_sdist.outputs.download-path }}/cffi*.tar.gz --strip-components=1 -C cffi
309
309
python -m pip install --upgrade "${{ matrix.cibw_version || 'cibuildwheel' }}"
310
310
@@ -418,18 +418,18 @@ jobs:
418
418
CIBW_BUILD : ${{ matrix.spec }}
419
419
CIBW_PRERELEASE_PYTHONS : ' True'
420
420
CIBW_TEST_REQUIRES : pytest pytest-xdist setuptools
421
- CIBW_TEST_COMMAND : pip install pip --upgrade; cd {project}; PYTHONUNBUFFERED=1 pytest
421
+ CIBW_TEST_COMMAND : pip install pip --upgrade; cd {project}; PYTHONUNBUFFERED=1 pytest -n auto
422
422
MACOSX_DEPLOYMENT_TARGET : ${{ matrix.deployment_target || '10.9' }}
423
423
SDKROOT : ${{ matrix.sdkroot || 'macosx' }}
424
424
run : |
425
425
set -eux
426
-
426
+
427
427
mkdir cffi
428
-
428
+
429
429
tar zxf ${{ steps.fetch_sdist.outputs.download-path }}/cffi*.tar.gz --strip-components=1 -C cffi
430
430
431
431
python3 -m cibuildwheel --output-dir dist cffi
432
-
432
+
433
433
echo "artifact_name=$(ls ./dist/)" >> "$GITHUB_OUTPUT"
434
434
435
435
- name : upload artifacts
@@ -509,20 +509,20 @@ jobs:
509
509
CIBW_BUILD : ${{ matrix.spec }}
510
510
CIBW_PRERELEASE_PYTHONS : ' True'
511
511
CIBW_TEST_REQUIRES : pytest pytest-xdist setuptools
512
- CIBW_TEST_COMMAND : ' python -m pytest {package}/src/c'
512
+ CIBW_TEST_COMMAND : ' python -m pytest -n auto {package}/src/c'
513
513
# FIXME: /testing takes ~45min on Windows and has some failures...
514
- # CIBW_TEST_COMMAND='python -m pytest {package}/src/c {project}/testing'
514
+ # CIBW_TEST_COMMAND='python -m pytest -n auto {package}/src/c {project}/testing'
515
515
run : |
516
516
set -eux
517
-
517
+
518
518
mkdir cffi
519
-
519
+
520
520
tar zxf cffi*.tar.gz --strip-components=1 -C cffi
521
-
521
+
522
522
python -m pip install --upgrade pip
523
523
pip install "${{ matrix.cibw_version || 'cibuildwheel'}}"
524
524
python -m cibuildwheel --output-dir dist cffi
525
-
525
+
526
526
echo "artifact_name=$(ls ./dist/)" >> "$GITHUB_OUTPUT"
527
527
528
528
shell : bash
0 commit comments