Skip to content

Commit 70dea78

Browse files
authored
Add testing with Python 3.11 to CI (#863)
* Add Python 3.11 to Workflows * test with 3.11 as well * change 3.10 to 3.11 * update gssapi to 1.8.2 in requirements-ci.txt * update cython in requirements-cython.txt * Update cython to 0.29.32 ony
1 parent 7544add commit 70dea78

File tree

5 files changed

+27
-17
lines changed

5 files changed

+27
-17
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Build wheels
5252
env:
5353
CIBW_ARCHS_LINUX: ${{matrix.arch}}
54-
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-*
54+
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-*
5555
CIBW_SKIP: '*-musllinux*'
5656
CIBW_BEFORE_BUILD_LINUX: pip install -r requirements-cython.txt && yum install -y zlib-devel
5757
# On windows and mac we should have z library preinstalled
@@ -116,7 +116,7 @@ jobs:
116116

117117
strategy:
118118
matrix:
119-
python: ["3.7", "3.8", "3.9", "3.10"]
119+
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
120120
include:
121121
- python: "3.7"
122122
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-macosx_10_9_x86_64.whl
@@ -126,6 +126,8 @@ jobs:
126126
aiokafka_whl: dist/aiokafka-*-cp39-cp39-macosx_10_9_x86_64.whl
127127
- python: "3.10"
128128
aiokafka_whl: dist/aiokafka-*-cp310-cp310-macosx_10_9_x86_64.whl
129+
- python: "3.11"
130+
aiokafka_whl: dist/aiokafka-*-cp311-cp311-macosx_10_9_x86_64.whl
129131

130132
steps:
131133
- uses: actions/checkout@v2
@@ -160,7 +162,7 @@ jobs:
160162

161163
strategy:
162164
matrix:
163-
python: ["3.7", "3.8", "3.9", "3.10"]
165+
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
164166
include:
165167
- python: "3.7"
166168
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-manylinux*_x86_64.whl
@@ -170,6 +172,8 @@ jobs:
170172
aiokafka_whl: dist/aiokafka-*-cp39-cp39-manylinux*_x86_64.whl
171173
- python: "3.10"
172174
aiokafka_whl: dist/aiokafka-*-cp310-cp310-manylinux*_x86_64.whl
175+
- python: "3.11"
176+
aiokafka_whl: dist/aiokafka-*-cp311-cp311-manylinux*_x86_64.whl
173177

174178
steps:
175179
- uses: actions/checkout@v2
@@ -217,6 +221,8 @@ jobs:
217221
aiokafka_whl: dist/aiokafka-*-cp39-cp39-manylinux*_aarch64.whl
218222
- pyver: cp310-cp310
219223
aiokafka_whl: dist/aiokafka-*-cp310-cp310-manylinux*_aarch64.whl
224+
- pyver: cp311-cp311
225+
aiokafka_whl: dist/aiokafka-*-cp311-cp311-manylinux*_aarch64.whl
220226

221227
steps:
222228
- uses: actions/checkout@v2

.github/workflows/tests.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
strategy:
216216
matrix:
217217
include:
218-
- python: "3.10"
218+
- python: "3.11"
219219
kafka: "2.8.1"
220220
scala: "2.13"
221221

@@ -229,39 +229,42 @@ jobs:
229229
- python: "3.9"
230230
kafka: "2.8.1"
231231
scala: "2.13"
232+
- python: "3.10"
233+
kafka: "2.8.1"
234+
scala: "2.13"
232235

233236
# Older brokers against latest python version
234-
- python: "3.10"
237+
- python: "3.11"
235238
kafka: "0.9.0.1"
236239
scala: "2.11"
237-
- python: "3.10"
240+
- python: "3.11"
238241
kafka: "0.10.2.1"
239242
scala: "2.11"
240-
- python: "3.10"
243+
- python: "3.11"
241244
kafka: "0.11.0.3"
242245
scala: "2.12"
243-
- python: "3.10"
246+
- python: "3.11"
244247
kafka: "1.1.1"
245248
scala: "2.12"
246-
- python: "3.10"
249+
- python: "3.11"
247250
kafka: "2.1.1"
248251
scala: "2.12"
249-
- python: "3.10"
252+
- python: "3.11"
250253
kafka: "2.2.2"
251254
scala: "2.12"
252-
- python: "3.10"
255+
- python: "3.11"
253256
kafka: "2.3.1"
254257
scala: "2.12"
255-
- python: "3.10"
258+
- python: "3.11"
256259
kafka: "2.4.1"
257260
scala: "2.12"
258-
- python: "3.10"
261+
- python: "3.11"
259262
kafka: "2.5.1"
260263
scala: "2.12"
261-
- python: "3.10"
264+
- python: "3.11"
262265
kafka: "2.6.3"
263266
scala: "2.12"
264-
- python: "3.10"
267+
- python: "3.11"
265268
kafka: "2.7.2"
266269
scala: "2.13"
267270
fail-fast: false

requirements-ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ xxhash==2.0.2
1313
python-snappy==0.6.1
1414
docutils==0.17.1
1515
Pygments==2.10.0
16-
gssapi==1.7.3
16+
gssapi==1.8.2
1717
async-timeout==4.0.1
1818
zstandard==0.16.0

requirements-cython.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Cython==0.29.30
1+
Cython==0.29.32

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def read_version():
150150
"Programming Language :: Python :: 3.8",
151151
"Programming Language :: Python :: 3.9",
152152
"Programming Language :: Python :: 3.10",
153+
"Programming Language :: Python :: 3.11",
153154
"Operating System :: OS Independent",
154155
"Topic :: System :: Networking",
155156
"Topic :: System :: Distributed Computing",

0 commit comments

Comments
 (0)