Skip to content

Commit ad62ae3

Browse files
committed
Remove Pytnon 3.9 support (end of life)
1 parent 81a5f36 commit ad62ae3

File tree

3 files changed

+13
-25
lines changed

3 files changed

+13
-25
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-python@v5
1717
with:
18-
python-version: "3.9"
18+
python-version: "3.10"
1919
- name: Prepare C files to include
2020
run: |
2121
python -m pip install --upgrade pip build
@@ -52,7 +52,7 @@ jobs:
5252
- uses: actions/checkout@v4
5353
- uses: actions/setup-python@v5
5454
with:
55-
python-version: "3.9"
55+
python-version: "3.10"
5656
- name: Set up QEMU
5757
if: ${{ matrix.arch == 'aarch64' }}
5858
uses: docker/setup-qemu-action@v3
@@ -82,10 +82,8 @@ jobs:
8282

8383
strategy:
8484
matrix:
85-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
85+
python: ["3.10", "3.11", "3.12", "3.13"]
8686
include:
87-
- python: "3.9"
88-
aiokafka_whl: dist/aiokafka-*-cp39-cp39-win_amd64.whl
8987
- python: "3.10"
9088
aiokafka_whl: dist/aiokafka-*-cp310-cp310-win_amd64.whl
9189
- python: "3.11"
@@ -127,10 +125,8 @@ jobs:
127125

128126
strategy:
129127
matrix:
130-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
128+
python: ["3.10", "3.11", "3.12", "3.13"]
131129
include:
132-
- python: "3.9"
133-
aiokafka_whl: dist/aiokafka-*-cp39-cp39-macosx_*_x86_64.whl
134130
- python: "3.10"
135131
aiokafka_whl: dist/aiokafka-*-cp310-cp310-macosx_*_x86_64.whl
136132
- python: "3.11"
@@ -170,10 +166,8 @@ jobs:
170166

171167
strategy:
172168
matrix:
173-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
169+
python: ["3.10", "3.11", "3.12", "3.13"]
174170
include:
175-
- python: "3.9"
176-
aiokafka_whl: dist/aiokafka-*-cp39-cp39-macosx_*_arm64.whl
177171
- python: "3.10"
178172
aiokafka_whl: dist/aiokafka-*-cp310-cp310-macosx_*_arm64.whl
179173
- python: "3.11"
@@ -213,10 +207,8 @@ jobs:
213207

214208
strategy:
215209
matrix:
216-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
210+
python: ["3.10", "3.11", "3.12", "3.13"]
217211
include:
218-
- python: "3.9"
219-
aiokafka_whl: dist/aiokafka-*-cp39-cp39-manylinux*_x86_64.whl
220212
- python: "3.10"
221213
aiokafka_whl: dist/aiokafka-*-cp310-cp310-manylinux*_x86_64.whl
222214
- python: "3.11"

.github/workflows/tests.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: 3.9
25+
python-version: "3.10"
2626

2727
- name: Install system dependencies
2828
run: |
@@ -39,10 +39,10 @@ jobs:
3939
uses: actions/cache@v4
4040
with:
4141
path: ${{ steps.pip-cache.outputs.dir }}
42-
key: ${{ runner.os }}-py-3.9-${{ hashFiles('requirements-ci.txt') }}-${{ hashFiles('setup.py') }}
42+
key: ${{ runner.os }}-py-3.10-${{ hashFiles('requirements-ci.txt') }}-${{ hashFiles('setup.py') }}
4343
# If miss on key takes any other cache with different hashes, will download correct ones on next step anyway
4444
restore-keys: |
45-
${{ runner.os }}-py-3.9-
45+
${{ runner.os }}-py-3.10-
4646
4747
- name: Install python dependencies
4848
run: |
@@ -73,7 +73,7 @@ jobs:
7373

7474
strategy:
7575
matrix:
76-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
76+
python: ["3.10", "3.11", "3.12", "3.13"]
7777

7878
steps:
7979
- uses: actions/checkout@v4
@@ -141,7 +141,7 @@ jobs:
141141

142142
strategy:
143143
matrix:
144-
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
144+
python: ["3.10", "3.11", "3.12", "3.13"]
145145

146146
steps:
147147
- uses: actions/checkout@v4
@@ -215,9 +215,6 @@ jobs:
215215
scala: "2.13"
216216

217217
# Older python versions against latest broker
218-
- python: "3.9"
219-
kafka: "2.8.1"
220-
scala: "2.13"
221218
- python: "3.10"
222219
kafka: "2.8.1"
223220
scala: "2.13"

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ requires = ["setuptools >=77", "Cython >=3.0.5"]
55
name = "aiokafka"
66
description = "Kafka integration with asyncio"
77
readme = "README.rst"
8-
requires-python = ">=3.9"
8+
requires-python = ">=3.10"
99
license = "Apache-2.0"
1010
authors = [
1111
{ name = "Andrew Svetlov", email = "[email protected]" },
1212
]
1313
classifiers = [
1414
"Intended Audience :: Developers",
1515
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.9",
1716
"Programming Language :: Python :: 3.10",
1817
"Programming Language :: Python :: 3.11",
1918
"Programming Language :: Python :: 3.12",
@@ -158,7 +157,7 @@ pyupgrade.keep-runtime-typing = true
158157
docstring-code-format = true
159158

160159
[tool.mypy]
161-
python_version = "3.9"
160+
python_version = "3.10"
162161
disable_error_code = "import-untyped"
163162
check_untyped_defs = true
164163
disallow_any_generics = true

0 commit comments

Comments
 (0)