Skip to content

Commit 54b1cb9

Browse files
authored
Drop support for Python 3.7 (#893)
We have problems with openssl in the image for it we don't want to solve and it reaches end of life in a month anyway
1 parent a9ff2f5 commit 54b1cb9

File tree

5 files changed

+10
-24
lines changed

5 files changed

+10
-24
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@v2
1616
- uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.7
18+
python-version: "3.8"
1919
- name: Prepare C files to include
2020
run: |
2121
python -m pip install --upgrade pip setuptools
@@ -44,14 +44,14 @@ jobs:
4444
- uses: actions/checkout@v2
4545
- uses: actions/setup-python@v2
4646
with:
47-
python-version: 3.7
47+
python-version: "3.8"
4848
- name: Set up QEMU
4949
if: ${{ matrix.arch == 'aarch64' }}
5050
uses: docker/setup-qemu-action@v1
5151
- name: Build wheels
5252
env:
5353
CIBW_ARCHS_LINUX: ${{matrix.arch}}
54-
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-*
54+
CIBW_BUILD: 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
@@ -75,10 +75,8 @@ jobs:
7575
strategy:
7676
matrix:
7777
# 3.11 excluded due to problems with python-snappy
78-
python: ["3.7", "3.8", "3.9", "3.10"]
78+
python: ["3.8", "3.9", "3.10"]
7979
include:
80-
- python: "3.7"
81-
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-win_amd64.whl
8280
- python: "3.8"
8381
aiokafka_whl: dist/aiokafka-*-cp38-cp38-win_amd64.whl
8482
- python: "3.9"
@@ -118,10 +116,8 @@ jobs:
118116

119117
strategy:
120118
matrix:
121-
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
119+
python: ["3.8", "3.9", "3.10", "3.11"]
122120
include:
123-
- python: "3.7"
124-
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-macosx_10_9_x86_64.whl
125121
- python: "3.8"
126122
aiokafka_whl: dist/aiokafka-*-cp38-cp38-macosx_10_9_x86_64.whl
127123
- python: "3.9"
@@ -164,10 +160,8 @@ jobs:
164160

165161
strategy:
166162
matrix:
167-
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
163+
python: ["3.8", "3.9", "3.10", "3.11"]
168164
include:
169-
- python: "3.7"
170-
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-manylinux*_x86_64.whl
171165
- python: "3.8"
172166
aiokafka_whl: dist/aiokafka-*-cp38-cp38-manylinux*_x86_64.whl
173167
- python: "3.9"
@@ -215,8 +209,6 @@ jobs:
215209
strategy:
216210
matrix:
217211
include:
218-
- pyver: cp37-cp37m
219-
aiokafka_whl: dist/aiokafka-*-cp37-cp37m-manylinux*_aarch64.whl
220212
- pyver: cp38-cp38
221213
aiokafka_whl: dist/aiokafka-*-cp38-cp38-manylinux*_aarch64.whl
222214
- pyver: cp39-cp39

.github/workflows/tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
strategy:
7575
matrix:
7676
# 3.11 excluded due to problems with python-snappy
77-
python: ["3.7", "3.8", "3.9", "3.10"]
77+
python: ["3.8", "3.9", "3.10"]
7878

7979
steps:
8080
- uses: actions/checkout@v2
@@ -142,7 +142,7 @@ jobs:
142142

143143
strategy:
144144
matrix:
145-
python: ["3.7", "3.8", "3.9", "3.10"]
145+
python: ["3.8", "3.9", "3.10"]
146146

147147
steps:
148148
- uses: actions/checkout@v2
@@ -220,9 +220,6 @@ jobs:
220220
scala: "2.13"
221221

222222
# Older python versions against latest broker
223-
- python: "3.7"
224-
kafka: "2.8.1"
225-
scala: "2.13"
226223
- python: "3.8"
227224
kafka: "2.8.1"
228225
scala: "2.13"

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Welcome to aiokafka's documentation!
22
====================================
33

44
.. _GitHub: https://github.com/aio-libs/aiokafka
5-
.. _asyncio: http://docs.python.org/3.7/library/asyncio.html
5+
.. _asyncio: https://docs.python.org/3/library/asyncio.html
66
.. _kafka-python: https://github.com/dpkp/kafka-python
77

88
.. image:: https://img.shields.io/badge/kafka-1.0%2C%200.11%2C%200.10%2C%200.9-brightgreen.svg

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ def read_version():
146146
"License :: OSI Approved :: Apache Software License",
147147
"Intended Audience :: Developers",
148148
"Programming Language :: Python :: 3",
149-
"Programming Language :: Python :: 3.7",
150149
"Programming Language :: Python :: 3.8",
151150
"Programming Language :: Python :: 3.9",
152151
"Programming Language :: Python :: 3.10",
@@ -175,7 +174,7 @@ def read_version():
175174
download_url="https://pypi.python.org/pypi/aiokafka",
176175
license="Apache 2",
177176
packages=["aiokafka"],
178-
python_requires=">=3.7",
177+
python_requires=">=3.8",
179178
install_requires=install_requires,
180179
extras_require=extras_require,
181180
include_package_data=True,

tests/test_fetcher.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ def test_fetch_result_and_error(loop):
5454
error = FetchError(
5555
error=OffsetOutOfRangeError({}), backoff=0)
5656

57-
# Python3.7 got rid of trailing comma in exceptions, which makes the line
58-
# different between 3.6 and 3.7.
5957
assert repr(error) == "<FetchError error=OffsetOutOfRangeError({})>"
6058

6159

0 commit comments

Comments
 (0)