Skip to content

Commit 573d57a

Browse files
only support python3.11+
1 parent 2ff6307 commit 573d57a

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.10-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,5 +1,3 @@
1-
[aiohttp==3.8.1]
2-
python_versions = <3.11
31
[aiohttp==3.8.3]
42
python_versions = <3.12
53
[aiohttp==3.8.4]
@@ -55,9 +53,6 @@ python_versions = <3.12
5553

5654
[babel==2.10.3]
5755

58-
[backports-zoneinfo==0.2.1]
59-
python_versions = <3.9
60-
6156
[bcrypt==4.0.0]
6257
[bcrypt==4.1.3]
6358
[bcrypt==4.2.0]
@@ -195,20 +190,11 @@ brew_requires = libffi
195190
[click-repl==0.2.0]
196191
[click-repl==0.3.0]
197192

198-
[clickhouse-driver==0.2.4]
199-
python_versions = <3.11
200193
[clickhouse-driver==0.2.6]
201194

202195
[colorama==0.4.5]
203196
[colorama==0.4.6]
204197

205-
[confluent-kafka==1.9.2]
206-
apt_requires =
207-
patch
208-
wget
209-
brew_requires = wget
210-
custom_prebuild = prebuild/librdkafka v1.9.2
211-
python_versions = <3.11
212198
[confluent-kafka==2.1.1]
213199
apt_requires =
214200
patch
@@ -466,10 +452,6 @@ validate_incorrect_missing_deps = six
466452
[freezegun==1.2.1]
467453
[freezegun==1.2.2]
468454

469-
[frozenlist==1.3.1]
470-
python_versions = <3.11
471-
[frozenlist==1.3.3]
472-
python_versions = <3.11
473455
[frozenlist==1.4.1]
474456

475457
[gitdb==4.0.5]
@@ -565,11 +547,6 @@ brew_requires = go
565547
[google-cloud-storage==2.14.0]
566548
[google-cloud-storage==2.18.0]
567549

568-
[google-crc32c==1.3.0]
569-
apt_requires = cmake
570-
brew_requires = cmake
571-
custom_prebuild = prebuild/crc32c 1.1.2
572-
python_versions = <3.11
573550
[google-crc32c==1.5.0]
574551
apt_requires = cmake
575552
brew_requires = cmake
@@ -605,14 +582,6 @@ python_versions = <3.12
605582

606583
[grpc-stubs==1.53.0.5]
607584

608-
[grpcio==1.46.3]
609-
python_versions = <3.11
610-
[grpcio==1.47.0]
611-
python_versions = <3.11
612-
[grpcio==1.48.1]
613-
python_versions = <3.11
614-
[grpcio==1.51.1]
615-
python_versions = <3.11
616585
[grpcio==1.56.0]
617586
python_versions = <3.12
618587
[grpcio==1.59.0]
@@ -778,21 +747,8 @@ python_versions = <3.12
778747
[lazy-object-proxy==1.9.0]
779748
[lazy-object-proxy==1.10.0]
780749

781-
[libcst==0.4.3]
782-
python_versions = <3.11
783-
[libcst==0.4.7]
784-
python_versions = <3.11
785-
786750
[looseversion==1.0.2]
787751

788-
[lxml==4.6.5]
789-
apt_requires =
790-
libxml2-dev
791-
libxslt1-dev
792-
brew_requires =
793-
libxml2
794-
libxslt
795-
python_versions = <3.11
796752
[lxml==4.9.1]
797753
apt_requires =
798754
libxml2-dev
@@ -870,8 +826,6 @@ brew_requires = libmaxminddb
870826
[more-itertools==10.0.0]
871827
[more-itertools==10.1.0]
872828

873-
[msgpack==1.0.2]
874-
python_versions = <3.11
875829
[msgpack==1.0.4]
876830
python_versions = <3.12
877831
[msgpack==1.0.7]
@@ -1101,12 +1055,6 @@ python_versions = <3.12
11011055
[psutil==5.9.2]
11021056
[psutil==5.9.7]
11031057

1104-
[psycopg2-binary==2.8.6]
1105-
apt_requires = libpq-dev
1106-
brew_requires =
1107-
1108-
postgresql
1109-
python_versions = <3.11
11101058
[psycopg2-binary==2.9.3]
11111059
apt_requires = libpq-dev
11121060
brew_requires =
@@ -1320,9 +1268,6 @@ brew_requires = libmemcached
13201268
[pyupgrade==3.15.0]
13211269
[pyupgrade==3.17.0]
13221270

1323-
[pyuwsgi==2.0.20]
1324-
python_versions = <3.11
1325-
validate_skip_imports = uwsgidecorators
13261271
[pyuwsgi==2.0.23]
13271272
validate_skip_imports = uwsgidecorators
13281273
[pyuwsgi==2.0.23.post0]
@@ -1381,10 +1326,6 @@ python_versions = <3.12
13811326
[regex==2022.9.13]
13821327
[regex==2023.12.25]
13831328

1384-
[reportlab==3.6.1]
1385-
python_versions = <3.11
1386-
[reportlab==3.6.11]
1387-
python_versions = <3.11
13881329
[reportlab==3.6.13]
13891330
python_versions = <3.12
13901331
[reportlab==4.0.7]
@@ -2184,9 +2125,6 @@ python_versions = <3.12
21842125
[time-machine==2.12.0]
21852126
[time-machine==2.13.0]
21862127

2187-
[timelib==0.2.5]
2188-
python_versions = <3.11
2189-
21902128
[tldextract==5.1.2]
21912129

21922130
[tokenize-rt==4.2.1]
@@ -2455,14 +2393,6 @@ python_versions = <3.12
24552393
[wsproto==1.1.0]
24562394
[wsproto==1.2.0]
24572395

2458-
[xmlsec==1.3.12]
2459-
apt_requires =
2460-
libxmlsec1-dev
2461-
pkg-config
2462-
brew_requires =
2463-
libxmlsec1
2464-
pkg-config
2465-
python_versions = <3.11
24662396
[xmlsec==1.3.13]
24672397
apt_requires =
24682398
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)