Skip to content

Commit 5ebf2b2

Browse files
Merge pull request #1032 from getsentry/remove-py310
only support python3.11+
2 parents efa521f + 17b8f1b commit 5ebf2b2

File tree

11 files changed

+17
-91
lines changed

11 files changed

+17
-91
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- uses: actions/checkout@v3
7272
- uses: actions/setup-python@v4
7373
with:
74-
python-version: '3.10'
74+
python-version: '3.11'
7575
- run: pip install -r docker/requirements.txt
7676
- uses: actions/download-artifact@v4
7777
with:

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-python@v4
1313
with:
14-
python-version: '3.10'
14+
python-version: '3.11'
1515
- uses: pre-commit/[email protected]

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-python@v4
1616
with:
17-
python-version: '3.10'
17+
python-version: '3.11'
1818
- run: pip install tox
1919
- run: tox -e py

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
rev: v3.12.0
1212
hooks:
1313
- id: reorder-python-imports
14-
args: [--py310-plus, --add-import, 'from __future__ import annotations']
14+
args: [--py311-plus, --add-import, 'from __future__ import annotations']
1515
- repo: https://github.com/psf/black
1616
rev: 24.1.1
1717
hooks:
@@ -20,7 +20,7 @@ repos:
2020
rev: v3.15.0
2121
hooks:
2222
- id: pyupgrade
23-
args: [--py310-plus]
23+
args: [--py311-plus]
2424
- repo: https://github.com/PyCQA/flake8
2525
rev: 7.0.0
2626
hooks:

build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from packaging.utils import parse_wheel_filename
3333
from packaging.version import Version
3434

35-
PYTHONS = ((3, 10), (3, 11), (3, 12))
35+
PYTHONS = ((3, 11), (3, 12))
3636

3737
BINARY_EXTS = frozenset(
3838
(".c", ".cc", ".cpp", ".cxx", ".pxd", ".pxi", ".pyx", ".go", ".rs")

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10.12-slim-buster
1+
FROM python:3.11.4-slim-buster
22
RUN : \
33
&& apt-get update \
44
&& DEBIAN_FRONTEND=noninteractive apt-get install \
@@ -56,7 +56,7 @@ RUN /tmp/install-pythons
5656

5757
COPY requirements.txt /tmp/requirements.txt
5858
RUN : \
59-
&& /opt/python/cp310-cp310/bin/python3.10 -m venv /venv \
59+
&& /opt/python/cp311-cp311/bin/python3.11 -m venv /venv \
6060
&& /venv/bin/pip install --no-cache-dir -r /tmp/requirements.txt
6161

6262
ENTRYPOINT ["dumb-init", "--"]

docker/install-pythons

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python3.10
1+
#!/usr/bin/env python3.11
22
from __future__ import annotations
33

44
import argparse
@@ -16,10 +16,6 @@ RELEASE = (
1616
)
1717
# curl --silent --location https://github.com/indygreg/python-build-standalone/releases/download/20240107/SHA256SUMS | grep -E '(aarch64-apple-darwin-pgo\+lto-full|x86_64-apple-darwin-pgo\+lto-full|aarch64-unknown-linux-gnu-lto-full|x86_64-unknown-linux-gnu-pgo\+lto-full)' | grep -v 'cpython-3\.[89]'
1818
CHECKSUMS = """\
19-
d1a777a0688bafd2a62050c680508769d9b6c14779f64fee591f4e135c11e711 cpython-3.10.13+20240107-aarch64-apple-darwin-pgo+lto-full.tar.zst
20-
4e9fcb141a0c9af986f0819ab7a64c62ceb7b68f33df75753e669fc3d23a3412 cpython-3.10.13+20240107-aarch64-unknown-linux-gnu-lto-full.tar.zst
21-
b61f6f9cf0c35fd6df90b424e757a3bc1b483e8f8d8fadfa6c1ddd1a0c39c003 cpython-3.10.13+20240107-x86_64-apple-darwin-pgo+lto-full.tar.zst
22-
60e7ca89d37dd8a630a5525bda6143a66a3949c4f03c8319295ddb1d1023b425 cpython-3.10.13+20240107-x86_64-unknown-linux-gnu-pgo+lto-full.tar.zst
2319
c1f3dd13825906a5eae23ed8de9b653edb620568b2e0226eef3784eb1cce7eed cpython-3.11.7+20240107-aarch64-apple-darwin-pgo+lto-full.tar.zst
2420
e066d3fb69162e401d2bb1f3c20798fde7c2fffcba0912d792e46d569b591ab3 cpython-3.11.7+20240107-aarch64-unknown-linux-gnu-lto-full.tar.zst
2521
3f8caf73f2bfe22efa9666974c119727e163716e88af8ed3caa1e0ae5493de61 cpython-3.11.7+20240107-x86_64-apple-darwin-pgo+lto-full.tar.zst
@@ -29,7 +25,7 @@ b7e19b262c19dfb82107e092ba3959b2da9b8bc53aafeb86727996afdb577221 cpython-3.11.7
2925
bf2b176b0426d7b4d4909c1b19bbb25b4893f9ebdc61e32df144df2b10dcc800 cpython-3.12.1+20240107-x86_64-apple-darwin-pgo+lto-full.tar.zst
3026
f267489a041daf4e523c03d32639de04ee59ca925dff49a8c3ce2f28a9f70a3b cpython-3.12.1+20240107-x86_64-unknown-linux-gnu-pgo+lto-full.tar.zst
3127
"""
32-
VERSIONS = ("3.10.13", "3.11.7", "3.12.1")
28+
VERSIONS = ("3.11.7", "3.12.1")
3329
ARCH_MAP = {"arm64": "aarch64"}
3430
ARCH = ARCH_MAP.get(platform.machine(), platform.machine())
3531

docker/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# pip-compile --allow-unsafe --no-annotate

packages.ini

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
[aiohappyeyeballs==2.4.3]
22

3-
[aiohttp==3.8.1]
4-
python_versions = <3.11
53
[aiohttp==3.8.3]
64
python_versions = <3.12
75
[aiohttp==3.8.4]
@@ -58,9 +56,6 @@ python_versions = <3.12
5856

5957
[babel==2.10.3]
6058

61-
[backports-zoneinfo==0.2.1]
62-
python_versions = <3.9
63-
6459
[bcrypt==4.0.0]
6560
[bcrypt==4.1.3]
6661
[bcrypt==4.2.0]
@@ -200,20 +195,11 @@ brew_requires = libffi
200195
[click-repl==0.2.0]
201196
[click-repl==0.3.0]
202197

203-
[clickhouse-driver==0.2.4]
204-
python_versions = <3.11
205198
[clickhouse-driver==0.2.6]
206199

207200
[colorama==0.4.5]
208201
[colorama==0.4.6]
209202

210-
[confluent-kafka==1.9.2]
211-
apt_requires =
212-
patch
213-
wget
214-
brew_requires = wget
215-
custom_prebuild = prebuild/librdkafka v1.9.2
216-
python_versions = <3.11
217203
[confluent-kafka==2.1.1]
218204
apt_requires =
219205
patch
@@ -471,10 +457,6 @@ validate_incorrect_missing_deps = six
471457
[freezegun==1.2.1]
472458
[freezegun==1.2.2]
473459

474-
[frozenlist==1.3.1]
475-
python_versions = <3.11
476-
[frozenlist==1.3.3]
477-
python_versions = <3.11
478460
[frozenlist==1.4.1]
479461

480462
[gitdb==4.0.5]
@@ -570,11 +552,6 @@ brew_requires = go
570552
[google-cloud-storage==2.14.0]
571553
[google-cloud-storage==2.18.0]
572554

573-
[google-crc32c==1.3.0]
574-
apt_requires = cmake
575-
brew_requires = cmake
576-
custom_prebuild = prebuild/crc32c 1.1.2
577-
python_versions = <3.11
578555
[google-crc32c==1.5.0]
579556
apt_requires = cmake
580557
brew_requires = cmake
@@ -610,14 +587,6 @@ python_versions = <3.12
610587

611588
[grpc-stubs==1.53.0.5]
612589

613-
[grpcio==1.46.3]
614-
python_versions = <3.11
615-
[grpcio==1.47.0]
616-
python_versions = <3.11
617-
[grpcio==1.48.1]
618-
python_versions = <3.11
619-
[grpcio==1.51.1]
620-
python_versions = <3.11
621590
[grpcio==1.56.0]
622591
python_versions = <3.12
623592
[grpcio==1.59.0]
@@ -784,21 +753,8 @@ python_versions = <3.12
784753
[lazy-object-proxy==1.9.0]
785754
[lazy-object-proxy==1.10.0]
786755

787-
[libcst==0.4.3]
788-
python_versions = <3.11
789-
[libcst==0.4.7]
790-
python_versions = <3.11
791-
792756
[looseversion==1.0.2]
793757

794-
[lxml==4.6.5]
795-
apt_requires =
796-
libxml2-dev
797-
libxslt1-dev
798-
brew_requires =
799-
libxml2
800-
libxslt
801-
python_versions = <3.11
802758
[lxml==4.9.1]
803759
apt_requires =
804760
libxml2-dev
@@ -876,8 +832,6 @@ brew_requires = libmaxminddb
876832
[more-itertools==10.0.0]
877833
[more-itertools==10.1.0]
878834

879-
[msgpack==1.0.2]
880-
python_versions = <3.11
881835
[msgpack==1.0.4]
882836
python_versions = <3.12
883837
[msgpack==1.0.7]
@@ -1110,12 +1064,6 @@ python_versions = <3.12
11101064
[psutil==5.9.2]
11111065
[psutil==5.9.7]
11121066

1113-
[psycopg2-binary==2.8.6]
1114-
apt_requires = libpq-dev
1115-
brew_requires =
1116-
1117-
postgresql
1118-
python_versions = <3.11
11191067
[psycopg2-binary==2.9.3]
11201068
apt_requires = libpq-dev
11211069
brew_requires =
@@ -1329,9 +1277,6 @@ brew_requires = libmemcached
13291277
[pyupgrade==3.15.0]
13301278
[pyupgrade==3.17.0]
13311279

1332-
[pyuwsgi==2.0.20]
1333-
python_versions = <3.11
1334-
validate_skip_imports = uwsgidecorators
13351280
[pyuwsgi==2.0.23]
13361281
validate_skip_imports = uwsgidecorators
13371282
[pyuwsgi==2.0.23.post0]
@@ -1390,10 +1335,6 @@ python_versions = <3.12
13901335
[regex==2022.9.13]
13911336
[regex==2023.12.25]
13921337

1393-
[reportlab==3.6.1]
1394-
python_versions = <3.11
1395-
[reportlab==3.6.11]
1396-
python_versions = <3.11
13971338
[reportlab==3.6.13]
13981339
python_versions = <3.12
13991340
[reportlab==4.0.7]
@@ -2194,9 +2135,6 @@ python_versions = <3.12
21942135
[time-machine==2.12.0]
21952136
[time-machine==2.13.0]
21962137

2197-
[timelib==0.2.5]
2198-
python_versions = <3.11
2199-
22002138
[tldextract==5.1.2]
22012139

22022140
[tokenize-rt==4.2.1]
@@ -2466,14 +2404,6 @@ python_versions = <3.12
24662404
[wsproto==1.1.0]
24672405
[wsproto==1.2.0]
24682406

2469-
[xmlsec==1.3.12]
2470-
apt_requires =
2471-
libxmlsec1-dev
2472-
pkg-config
2473-
brew_requires =
2474-
libxmlsec1
2475-
pkg-config
2476-
python_versions = <3.11
24772407
[xmlsec==1.3.13]
24782408
apt_requires =
24792409
libxmlsec1-dev

tests/validate_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,24 @@ def test_pythons_to_check_no_pythons_raises_error():
4343

4444
def test_pythons_to_check_py2_ignored():
4545
ret = validate._pythons_to_check(parse_tag("py2.py3-none-any"))
46-
assert ret == ("python3.10", "python3.11", "python3.12")
46+
assert ret == ("python3.11", "python3.12")
4747

4848

4949
def test_pythons_to_check_py3_gives_all():
5050
ret = validate._pythons_to_check(parse_tag("py3-none-any"))
51-
assert ret == ("python3.10", "python3.11", "python3.12")
51+
assert ret == ("python3.11", "python3.12")
5252

5353

5454
def test_pythons_to_check_abi3():
5555
tag = "cp37-abi3-manylinux1_x86_64"
5656
ret = validate._pythons_to_check(parse_tag(tag))
57-
assert ret == ("python3.10", "python3.11", "python3.12")
57+
assert ret == ("python3.11", "python3.12")
5858

5959

6060
def test_pythons_to_check_minimum_abi3():
61-
tag = "cp311-abi3-manylinux1_x86_64"
61+
tag = "cp312-abi3-manylinux1_x86_64"
6262
ret = validate._pythons_to_check(parse_tag(tag))
63-
assert ret == ("python3.11", "python3.12")
63+
assert ret == ("python3.12",)
6464

6565

6666
def test_pythons_to_check_specific_cpython_tag():

0 commit comments

Comments
 (0)