Skip to content

Commit 186813f

Browse files
authored
Bump stable Python versions: 3.13.3, 3.12.10, 3.11.12, 3.10.17 and 3.9.22 (astral-sh#579)
1 parent 4df7acf commit 186813f

File tree

3 files changed

+36
-28
lines changed

3 files changed

+36
-28
lines changed

cpython-windows/build.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -564,14 +564,18 @@ def hack_project_files(
564564
except NoSearchStringError:
565565
pass
566566

567-
# Our custom OpenSSL build has applink.c in a different location
568-
# from the binary OpenSSL distribution. Update it.
569-
ssl_proj = pcbuild_path / "_ssl.vcxproj"
570-
static_replace_in_file(
571-
ssl_proj,
572-
rb'<ClCompile Include="$(opensslIncludeDir)\applink.c">',
573-
rb'<ClCompile Include="$(opensslIncludeDir)\openssl\applink.c">',
574-
)
567+
# Our custom OpenSSL build has applink.c in a different location from the
568+
# binary OpenSSL distribution. This is no longer relevant for 3.12+ per
569+
# https://github.com/python/cpython/pull/131839, so we allow it to fail.swe
570+
try:
571+
ssl_proj = pcbuild_path / "_ssl.vcxproj"
572+
static_replace_in_file(
573+
ssl_proj,
574+
rb'<ClCompile Include="$(opensslIncludeDir)\applink.c">',
575+
rb'<ClCompile Include="$(opensslIncludeDir)\openssl\applink.c">',
576+
)
577+
except NoSearchStringError:
578+
pass
575579

576580
# Python 3.12+ uses the the pre-built tk-windows-bin 8.6.12 which doesn't
577581
# have a standalone zlib DLL, so we remove references to it. For Python

pythonbuild/downloads.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,46 +37,46 @@
3737
"license_file": "LICENSE.bzip2.txt",
3838
},
3939
"cpython-3.9": {
40-
"url": "https://www.python.org/ftp/python/3.9.21/Python-3.9.21.tar.xz",
41-
"size": 19647056,
42-
"sha256": "3126f59592c9b0d798584755f2bf7b081fa1ca35ce7a6fea980108d752a05bb1",
43-
"version": "3.9.21",
40+
"url": "https://www.python.org/ftp/python/3.9.22/Python-3.9.22.tar.xz",
41+
"size": 19652572,
42+
"sha256": "8c136d199d3637a1fce98a16adc809c1d83c922d02d41f3614b34f8b6e7d38ec",
43+
"version": "3.9.22",
4444
"licenses": ["Python-2.0", "CNRI-Python"],
4545
"license_file": "LICENSE.cpython.txt",
4646
"python_tag": "cp39",
4747
},
4848
"cpython-3.10": {
49-
"url": "https://www.python.org/ftp/python/3.10.16/Python-3.10.16.tar.xz",
50-
"size": 19610392,
51-
"sha256": "bfb249609990220491a1b92850a07135ed0831e41738cf681d63cf01b2a8fbd1",
52-
"version": "3.10.16",
49+
"url": "https://www.python.org/ftp/python/3.10.17/Python-3.10.17.tar.xz",
50+
"size": 19608144,
51+
"sha256": "4c68050f049d1b4ac5aadd0df5f27941c0350d2a9e7ab0907ee5eb5225d9d6b0",
52+
"version": "3.10.17",
5353
"licenses": ["Python-2.0", "CNRI-Python"],
5454
"license_file": "LICENSE.cpython.txt",
5555
"python_tag": "cp310",
5656
},
5757
"cpython-3.11": {
58-
"url": "https://www.python.org/ftp/python/3.11.11/Python-3.11.11.tar.xz",
59-
"size": 20085792,
60-
"sha256": "2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3",
61-
"version": "3.11.11",
58+
"url": "https://www.python.org/ftp/python/3.11.12/Python-3.11.12.tar.xz",
59+
"size": 20112232,
60+
"sha256": "849da87af4df137710c1796e276a955f7a85c9f971081067c8f565d15c352a09",
61+
"version": "3.11.12",
6262
"licenses": ["Python-2.0", "CNRI-Python"],
6363
"license_file": "LICENSE.cpython.txt",
6464
"python_tag": "cp311",
6565
},
6666
"cpython-3.12": {
67-
"url": "https://www.python.org/ftp/python/3.12.9/Python-3.12.9.tar.xz",
68-
"size": 20502440,
69-
"sha256": "7220835d9f90b37c006e9842a8dff4580aaca4318674f947302b8d28f3f81112",
70-
"version": "3.12.9",
67+
"url": "https://www.python.org/ftp/python/3.12.10/Python-3.12.10.tar.xz",
68+
"size": 20520960,
69+
"sha256": "07ab697474595e06f06647417d3c7fa97ded07afc1a7e4454c5639919b46eaea",
70+
"version": "3.12.10",
7171
"licenses": ["Python-2.0", "CNRI-Python"],
7272
"license_file": "LICENSE.cpython.txt",
7373
"python_tag": "cp312",
7474
},
7575
"cpython-3.13": {
76-
"url": "https://www.python.org/ftp/python/3.13.2/Python-3.13.2.tar.xz",
77-
"size": 22621108,
78-
"sha256": "d984bcc57cd67caab26f7def42e523b1c015bbc5dc07836cf4f0b63fa159eb56",
79-
"version": "3.13.2",
76+
"url": "https://www.python.org/ftp/python/3.13.3/Python-3.13.3.tar.xz",
77+
"size": 22654240,
78+
"sha256": "40f868bcbdeb8149a3149580bb9bfd407b3321cd48f0be631af955ac92c0e041",
79+
"version": "3.13.3",
8080
"licenses": ["Python-2.0", "CNRI-Python"],
8181
"license_file": "LICENSE.cpython.txt",
8282
"python_tag": "cp313",

src/validation.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,10 @@ fn validate_extension_modules(
15961596
]);
15971597
}
15981598

1599+
if is_windows && matches!(python_major_minor, "3.13") {
1600+
wanted.extend(["_suggestions"]);
1601+
}
1602+
15991603
if (is_linux || is_macos) && matches!(python_major_minor, "3.13" | "3.14") {
16001604
wanted.extend(["_suggestions", "_testexternalinspection"]);
16011605
}

0 commit comments

Comments
 (0)