12
12
package-source :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v2
16
- - uses : actions/setup-python@v2
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-python@v5
17
17
with :
18
18
python-version : " 3.9"
19
19
- name : Prepare C files to include
25
25
- name : Build source package
26
26
run : python -m build --sdist
27
27
- name : Upload source package
28
- uses : actions/upload-artifact@v2
28
+ uses : actions/upload-artifact@v4
29
29
with :
30
- name : dist
30
+ name : dist-source
31
31
path : dist/
32
32
33
33
package-wheel :
@@ -49,17 +49,17 @@ jobs:
49
49
- os : windows-latest
50
50
arch : amd64
51
51
steps :
52
- - uses : actions/checkout@v2
53
- - uses : actions/setup-python@v2
52
+ - uses : actions/checkout@v4
53
+ - uses : actions/setup-python@v5
54
54
with :
55
55
python-version : " 3.9"
56
56
- name : Set up QEMU
57
57
if : ${{ matrix.arch == 'aarch64' }}
58
- uses : docker/setup-qemu-action@v1
58
+ uses : docker/setup-qemu-action@v3
59
59
- name : Build wheels
60
60
env :
61
61
CIBW_ARCHS_LINUX : ${{matrix.arch}}
62
- CIBW_BUILD : cp38-* cp39-* cp310-* cp311-* cp312-*
62
+ CIBW_BUILD : cp39-* cp310-* cp311-* cp312-* cp313 -*
63
63
CIBW_SKIP : ' *-musllinux*'
64
64
CIBW_BEFORE_BUILD_LINUX : pip install -r requirements-cython.txt && yum install -y zlib-devel
65
65
# On windows and mac we should have z library preinstalled
71
71
cibuildwheel --output-dir dist
72
72
shell : bash
73
73
- name : Upload wheels
74
- uses : actions/upload-artifact@v2
74
+ uses : actions/upload-artifact@v4
75
75
with :
76
- name : dist
76
+ name : dist-${{ matrix.os }}-${{ matrix.arch }}
77
77
path : dist/
78
78
79
79
test-wheels-windows :
@@ -96,14 +96,14 @@ jobs:
96
96
aiokafka_whl : dist/aiokafka-*-cp313-cp313-win_amd64.whl
97
97
98
98
steps :
99
- - uses : actions/checkout@v2
99
+ - uses : actions/checkout@v4
100
100
- name : Download distributions
101
- uses : actions/download-artifact@v2
101
+ uses : actions/download-artifact@v4
102
102
with :
103
- name : dist
103
+ name : dist-windows-latest-amd64
104
104
path : dist/
105
105
- name : Set up Python
106
- uses : actions/setup-python@v2
106
+ uses : actions/setup-python@v5
107
107
with :
108
108
python-version : ${{ matrix.python }}
109
109
@@ -141,14 +141,14 @@ jobs:
141
141
aiokafka_whl : dist/aiokafka-*-cp313-cp313-macosx_*_x86_64.whl
142
142
143
143
steps :
144
- - uses : actions/checkout@v2
144
+ - uses : actions/checkout@v4
145
145
- name : Download distributions
146
- uses : actions/download-artifact@v2
146
+ uses : actions/download-artifact@v4
147
147
with :
148
- name : dist
148
+ name : dist-macos-13-x86_64
149
149
path : dist/
150
150
- name : Set up Python
151
- uses : actions/setup-python@v2
151
+ uses : actions/setup-python@v5
152
152
with :
153
153
python-version : ${{ matrix.python }}
154
154
@@ -184,14 +184,14 @@ jobs:
184
184
aiokafka_whl : dist/aiokafka-*-cp313-cp313-macosx_*_arm64.whl
185
185
186
186
steps :
187
- - uses : actions/checkout@v2
187
+ - uses : actions/checkout@v4
188
188
- name : Download distributions
189
- uses : actions/download-artifact@v2
189
+ uses : actions/download-artifact@v4
190
190
with :
191
- name : dist
191
+ name : dist-macos-latest-arm64
192
192
path : dist/
193
193
- name : Set up Python
194
- uses : actions/setup-python@v2
194
+ uses : actions/setup-python@v5
195
195
with :
196
196
python-version : ${{ matrix.python }}
197
197
@@ -227,14 +227,14 @@ jobs:
227
227
aiokafka_whl : dist/aiokafka-*-cp313-cp313-manylinux*_x86_64.whl
228
228
229
229
steps :
230
- - uses : actions/checkout@v2
230
+ - uses : actions/checkout@v4
231
231
- name : Download distributions
232
- uses : actions/download-artifact@v2
232
+ uses : actions/download-artifact@v4
233
233
with :
234
- name : dist
234
+ name : dist-ubuntu-latest-x86_64
235
235
path : dist/
236
236
- name : Set up Python
237
- uses : actions/setup-python@v2
237
+ uses : actions/setup-python@v5
238
238
with :
239
239
python-version : ${{ matrix.python }}
240
240
@@ -264,8 +264,6 @@ jobs:
264
264
strategy :
265
265
matrix :
266
266
include :
267
- - pyver : cp38-cp38
268
- aiokafka_whl : dist/aiokafka-*-cp38-cp38-manylinux*_aarch64.whl
269
267
- pyver : cp39-cp39
270
268
aiokafka_whl : dist/aiokafka-*-cp39-cp39-manylinux*_aarch64.whl
271
269
- pyver : cp310-cp310
@@ -274,16 +272,18 @@ jobs:
274
272
aiokafka_whl : dist/aiokafka-*-cp311-cp311-manylinux*_aarch64.whl
275
273
- pyver : cp312-cp312
276
274
aiokafka_whl : dist/aiokafka-*-cp312-cp312-manylinux*_aarch64.whl
275
+ - pyver : cp313-cp313
276
+ aiokafka_whl : dist/aiokafka-*-cp313-cp313-manylinux*_aarch64.whl
277
277
278
278
steps :
279
- - uses : actions/checkout@v2
279
+ - uses : actions/checkout@v4
280
280
- name : Set up QEMU
281
281
id : qemu
282
- uses : docker/setup-qemu-action@v1
282
+ uses : docker/setup-qemu-action@v3
283
283
- name : Download distributions
284
- uses : actions/download-artifact@v2
284
+ uses : actions/download-artifact@v4
285
285
with :
286
- name : dist
286
+ name : dist-ubuntu-latest-aarch64
287
287
path : dist/
288
288
- name : Test Wheel
289
289
run : |
@@ -320,11 +320,12 @@ jobs:
320
320
https://pypi.org/project/aiokafka/${{ github.ref_name }}
321
321
322
322
steps :
323
- - uses : actions/checkout@v2
323
+ - uses : actions/checkout@v4
324
324
- name : Download distributions
325
- uses : actions/download-artifact@v2
325
+ uses : actions/download-artifact@v4
326
326
with :
327
- name : dist
328
327
path : dist/
328
+ pattern : dist-*
329
+ merge-multiple : true
329
330
- name : Publish to PyPI
330
331
uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments