48
48
fail-fast : false
49
49
matrix :
50
50
python-version :
51
- - pp39
52
51
- pp310
53
52
- cp3{9,10,11}
54
53
- cp3{12,13}
57
56
- manylinux_2_28
58
57
- musllinux
59
58
exclude :
60
- - { python-version: pp39, spec: musllinux }
61
59
- { python-version: pp310, spec: musllinux }
62
60
63
61
steps :
@@ -97,18 +95,30 @@ jobs:
97
95
path : ./wheelhouse/*.whl
98
96
99
97
build-2-native-wheels :
98
+ if : github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
100
99
name : ${{ matrix.name }}
101
100
runs-on : ${{ matrix.os }}
102
101
strategy :
103
102
fail-fast : false
104
103
matrix :
105
104
include :
106
- - name : " macOS x86_64"
105
+ - name : " macOS 10.10 x86_64"
107
106
os : macos-13
108
107
cibw_arch : x86_64
108
+ build : " cp3{9,10,11}*"
109
109
macosx_deployment_target : " 10.10"
110
+ - name : " macOS 10.13 x86_64"
111
+ os : macos-13
112
+ cibw_arch : x86_64
113
+ build : " cp3{12,13}*"
114
+ macosx_deployment_target : " 10.13"
115
+ - name : " macOS 10.15 x86_64"
116
+ os : macos-13
117
+ cibw_arch : x86_64
118
+ build : " pp310*"
119
+ macosx_deployment_target : " 10.15"
110
120
- name : " macOS arm64"
111
- os : macos-14
121
+ os : macos-latest
112
122
cibw_arch : arm64
113
123
macosx_deployment_target : " 11.0"
114
124
- name : " manylinux2014 and musllinux x86_64"
@@ -146,10 +156,11 @@ jobs:
146
156
147
157
- uses : actions/upload-artifact@v4
148
158
with :
149
- name : dist-${{ matrix.os }}-${{ matrix.cibw_arch }}${{ matrix.manylinux && format('-{0}', matrix.manylinux) }}
159
+ name : dist-${{ matrix.os }}${{ matrix.macosx_deployment_target && format('-{0}', matrix.macosx_deployment_target) }} -${{ matrix.cibw_arch }}${{ matrix.manylinux && format('-{0}', matrix.manylinux) }}
150
160
path : ./wheelhouse/*.whl
151
161
152
162
windows :
163
+ if : github.event_name != 'schedule' || github.repository_owner == 'python-pillow'
153
164
name : Windows ${{ matrix.cibw_arch }}
154
165
runs-on : windows-latest
155
166
strategy :
@@ -256,7 +267,7 @@ jobs:
256
267
path : dist/*.tar.gz
257
268
258
269
scientific-python-nightly-wheels-publish :
259
- if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
270
+ if : github.repository_owner == 'python-pillow' && (github. event_name == 'schedule' || github.event_name == 'workflow_dispatch')
260
271
needs : [build-2-native-wheels, windows]
261
272
runs-on : ubuntu-latest
262
273
name : Upload wheels to scientific-python-nightly-wheels
@@ -267,13 +278,13 @@ jobs:
267
278
path : dist
268
279
merge-multiple : true
269
280
- name : Upload wheels to scientific-python-nightly-wheels
270
- uses : scientific-python/upload-nightly-action@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0
281
+ uses : scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1
271
282
with :
272
283
artifacts_path : dist
273
284
anaconda_nightly_upload_token : ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
274
285
275
286
pypi-publish :
276
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
287
+ if : github.repository_owner == 'python-pillow' && github. event_name == 'push' && startsWith(github.ref, 'refs/tags')
277
288
needs : [build-1-QEMU-emulated-wheels, build-2-native-wheels, windows, sdist]
278
289
runs-on : ubuntu-latest
279
290
name : Upload release to PyPI
0 commit comments