Skip to content

Commit a970773

Browse files
enable builds for python 3.13
1 parent f4a864a commit a970773

File tree

4 files changed

+64
-6
lines changed

4 files changed

+64
-6
lines changed

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, 11), (3, 12))
35+
PYTHONS = ((3, 11), (3, 12), (3, 13))
3636

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

packages.ini

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ python_versions = <3.12
77
[aiohttp==3.8.5]
88
python_versions = <3.12
99
[aiohttp==3.9.1]
10+
python_versions = <3.13
1011
[aiohttp==3.10.2]
12+
python_versions = <3.13
1113
[aiohttp==3.10.10]
1214

1315
[aiosignal==1.2.0]
@@ -112,6 +114,8 @@ validate_extras = d
112114
[botocore==1.34.128]
113115

114116
[brotli==1.0.9]
117+
python_versions = <3.12
118+
[brotli==1.1.0]
115119

116120
[build==0.8.0]
117121
[build==0.10.0]
@@ -157,12 +161,15 @@ validate_extras = d
157161
[cffi==1.14.6]
158162
apt_requires = libffi-dev
159163
brew_requires = libffi
164+
python_versions = <3.13
160165
[cffi==1.15.1]
161166
apt_requires = libffi-dev
162167
brew_requires = libffi
168+
python_versions = <3.13
163169
[cffi==1.16.0]
164170
apt_requires = libffi-dev
165171
brew_requires = libffi
172+
python_versions = <3.13
166173
[cffi==1.17.1]
167174
apt_requires = libffi-dev
168175
brew_requires = libffi
@@ -198,6 +205,7 @@ brew_requires = libffi
198205
[click-repl==0.3.0]
199206

200207
[clickhouse-driver==0.2.6]
208+
python_versions = <3.13
201209

202210
[colorama==0.4.5]
203211
[colorama==0.4.6]
@@ -208,6 +216,7 @@ apt_requires =
208216
wget
209217
brew_requires = wget
210218
custom_prebuild = prebuild/librdkafka v2.1.1
219+
python_versions = <3.13
211220
[confluent-kafka==2.3.0]
212221
apt_requires =
213222
patch
@@ -221,14 +230,24 @@ custom_prebuild = prebuild/librdkafka v2.3.0
221230
[covdefaults==2.3.0]
222231

223232
[coverage==6.3.3]
233+
python_versions = <3.13
224234
[coverage==6.4.1]
235+
python_versions = <3.13
225236
[coverage==6.4.3]
237+
python_versions = <3.13
226238
[coverage==6.4.4]
239+
python_versions = <3.13
227240
[coverage==6.5.0]
241+
python_versions = <3.13
228242
[coverage==7.1.0]
243+
python_versions = <3.13
229244
[coverage==7.2.7]
245+
python_versions = <3.13
230246
[coverage==7.3.4]
247+
python_versions = <3.13
231248
[coverage==7.4.1]
249+
python_versions = <3.13
250+
[coverage==7.6.4]
232251

233252
[coverage-enable-subprocess==1.0]
234253

@@ -470,6 +489,7 @@ validate_incorrect_missing_deps = six
470489
[gojsonnet==0.20.0]
471490
apt_requires = golang
472491
brew_requires = go
492+
python_versions = <3.13
473493

474494
[google-api-core==1.32.0]
475495
[google-api-core==2.8.2]
@@ -595,12 +615,19 @@ python_versions = <3.12
595615
[grpcio==1.56.0]
596616
python_versions = <3.12
597617
[grpcio==1.59.0]
618+
python_versions = <3.13
598619
[grpcio==1.60.0]
620+
python_versions = <3.13
599621
[grpcio==1.60.1]
622+
python_versions = <3.13
600623
[grpcio==1.62.1]
624+
python_versions = <3.13
601625
[grpcio==1.64.0]
626+
python_versions = <3.13
602627
[grpcio==1.65.4]
628+
python_versions = <3.13
603629
[grpcio==1.66.1]
630+
python_versions = <3.13
604631
[grpcio==1.67.0]
605632

606633
[grpcio-status==1.47.0]
@@ -625,6 +652,7 @@ python_versions = <3.12
625652
[hiredis==2.0.0]
626653
python_versions = <3.12
627654
[hiredis==2.3.2]
655+
python_versions = <3.13
628656

629657
[honcho==1.0.0]
630658
[honcho==1.0.1]
@@ -710,6 +738,7 @@ python_versions = <3.12
710738
[johen==0.1.5]
711739

712740
[jsonnet==0.20.0]
741+
python_versions = <3.13
713742

714743
[jsonpatch==1.33]
715744

@@ -777,6 +806,7 @@ apt_requires =
777806
brew_requires =
778807
libxml2
779808
libxslt
809+
python_versions = <3.13
780810

781811
[lxml-stubs==0.4.0]
782812

@@ -842,13 +872,17 @@ brew_requires = libmaxminddb
842872
[msgpack==1.0.4]
843873
python_versions = <3.12
844874
[msgpack==1.0.7]
875+
python_versions = <3.13
845876
[msgpack==1.0.8]
877+
python_versions = <3.13
846878
[msgpack==1.1.0]
847879

848880
[msgpack-types==0.2.0]
849881

850882
[multidict==6.0.2]
883+
python_versions = <3.13
851884
[multidict==6.0.4]
885+
python_versions = <3.13
852886
[multidict==6.1.0]
853887

854888
[mypy==0.971]
@@ -919,7 +953,9 @@ python_versions = <3.12
919953
[opentelemetry-proto==1.22.0]
920954

921955
[orjson==3.10.0]
956+
python_versions = <3.13
922957
[orjson==3.10.3]
958+
python_versions = <3.13
923959

924960
[outcome==1.2.0]
925961
[outcome==1.3.0.post0]
@@ -976,10 +1012,15 @@ python_versions = <3.12
9761012
[pillow==9.5.0]
9771013
python_versions = <3.12
9781014
[pillow==10.0.0]
1015+
python_versions = <3.13
9791016
[pillow==10.0.1]
1017+
python_versions = <3.13
9801018
[pillow==10.1.0]
1019+
python_versions = <3.13
9811020
[pillow==10.2.0]
1021+
python_versions = <3.13
9821022
[pillow==10.3.0]
1023+
python_versions = <3.13
9831024
[pillow==10.4.0]
9841025

9851026
[pip==22.1.2]
@@ -1086,6 +1127,12 @@ brew_requires =
10861127
python_versions = <3.12
10871128
[psycopg2-binary==2.9.9]
10881129
apt_requires = libpq-dev
1130+
brew_requires =
1131+
1132+
postgresql
1133+
python_versions = <3.13
1134+
[psycopg2-binary==2.9.10]
1135+
apt_requires = libpq-dev
10891136
brew_requires =
10901137
10911138
postgresql
@@ -1129,7 +1176,10 @@ brew_requires =
11291176
[pydantic==2.7.4]
11301177

11311178
[pydantic-core==2.14.5]
1179+
python_versions = <3.13
11321180
[pydantic-core==2.18.4]
1181+
python_versions = <3.13
1182+
[pydantic-core==2.24.2]
11331183

11341184
[pyelftools==0.28]
11351185
[pyelftools==0.29]
@@ -1164,7 +1214,9 @@ brew_requires = libmemcached
11641214
[pyproject-hooks==1.0.0]
11651215

11661216
[pyrsistent==0.18.1]
1217+
python_versions = <3.13
11671218
[pyrsistent==0.19.3]
1219+
python_versions = <3.13
11681220

11691221
[pysocks==1.7.1]
11701222

@@ -1286,12 +1338,16 @@ brew_requires = libmemcached
12861338
[pyupgrade==3.17.0]
12871339

12881340
[pyuwsgi==2.0.23]
1341+
python_versions = <3.13
12891342
validate_skip_imports = uwsgidecorators
12901343
[pyuwsgi==2.0.23.post0]
1344+
python_versions = <3.13
12911345
validate_skip_imports = uwsgidecorators
12921346
[pyuwsgi==2.0.26]
1347+
python_versions = <3.13
12931348
validate_skip_imports = uwsgidecorators
12941349
[pyuwsgi==2.0.27a1]
1350+
python_versions = <3.13
12951351
validate_skip_imports = uwsgidecorators
12961352

12971353
[pyvat==1.3.15]
@@ -1312,6 +1368,7 @@ python_versions = <3.12
13121368
[pyyaml==6.0.1]
13131369
apt_requires = libyaml-dev
13141370
brew_requires = libyaml
1371+
python_versions = <3.13
13151372
[pyyaml==6.0.2]
13161373
apt_requires = libyaml-dev
13171374
brew_requires = libyaml
@@ -2441,6 +2498,7 @@ python_versions = <3.12
24412498
[yarl==1.9.2]
24422499
python_versions = <3.12
24432500
[yarl==1.9.4]
2501+
python_versions = <3.13
24442502
[yarl==1.15.4]
24452503

24462504
[zipp==3.5.0]

tests/validate_test.py

Lines changed: 4 additions & 4 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.11", "python3.12")
46+
assert ret == ("python3.11", "python3.12", "python3.13")
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.11", "python3.12")
51+
assert ret == ("python3.11", "python3.12", "python3.13")
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.11", "python3.12")
57+
assert ret == ("python3.11", "python3.12", "python3.13")
5858

5959

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

6565

6666
def test_pythons_to_check_specific_cpython_tag():

validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from packaging.utils import parse_wheel_filename
1616
from packaging.version import Version
1717

18-
PYTHONS = ((3, 11), (3, 12))
18+
PYTHONS = ((3, 11), (3, 12), (3, 13))
1919
DIST_INFO_RE = re.compile(r"^[^/]+.dist-info/[^/]+$")
2020

2121

0 commit comments

Comments
 (0)