Skip to content

Commit acee8d9

Browse files
astral-automations-bot[bot]jjhelmusEliteTK
authored
Sync latest Python releases, Python 3.11.18, 3.12.16, 3.13.18, 3.14.10, 3.15.2 (#22938)
Automated update for Python releases. --------- Co-authored-by: astral-automations-bot[bot] <305554984+astral-automations-bot[bot]@users.noreply.github.com> Co-authored-by: Jonathan J. Helmus <[email protected]> Co-authored-by: Tomasz (Tom) Kramkowski <[email protected]>
1 parent 4b46af0 commit acee8d9

9 files changed

Lines changed: 21294 additions & 15782 deletions

File tree

‎.python-versions‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
# to use the versions of Python embedded in the local checkout of `uv`.
88

99
# Keep Python 3.14 first for development tools with dependencies that lack Python 3.15 wheels.
10-
3.14.9
11-
3.15.1
12-
3.13.17
13-
3.12.15
14-
3.11.17
10+
3.14.10
11+
3.15.2
12+
3.13.18
13+
3.12.16
14+
3.11.18
1515
3.10.22
1616
3.9.25
1717
3.8.20
1818
# The following is needed for `==3.13` request tests
1919
3.13.0
2020
# Free-threaded versions required for testing
21-
3.13.17t
22-
3.14.9t
21+
3.13.18t
22+
3.14.10t
2323
# Pre-release version required for testing
2424
3.16.0a1
2525

‎crates/uv-dev/src/generate_sysconfig_mappings.rs‎

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,30 @@ use crate::ROOT_DIR;
1111
use crate::generate_all::Mode;
1212

1313
/// Contains current supported targets
14-
const TARGETS_YML_URL: &str = "https://raw.githubusercontent.com/astral-sh/python-build-standalone/refs/tags/20261021/cpython-unix/targets.yml";
14+
const TARGETS_YML_URL: &str = "https://raw.githubusercontent.com/astral-sh/python-build-standalone/refs/tags/20261026/cpython-unix/targets.yml";
1515

1616
// Preserve compiler paths embedded in older downloadable python-build-standalone releases.
17-
const HISTORICAL_CC_VALUES: [&str; 3] = [
17+
const HISTORICAL_CC_VALUES: [&str; 9] = [
1818
"/usr/bin/aarch64-linux-gnu-gcc",
19+
"/usr/bin/arm-linux-gnueabi-gcc",
20+
"/usr/bin/arm-linux-gnueabihf-gcc",
21+
"/usr/bin/mips-linux-gnu-gcc",
22+
"/usr/bin/mipsel-linux-gnu-gcc",
23+
"/usr/bin/powerpc64le-linux-gnu-gcc",
1924
"/usr/bin/riscv64-linux-gnu-clang",
2025
"/usr/bin/riscv64-linux-gnu-gcc",
26+
"/usr/bin/s390x-linux-gnu-gcc",
2127
];
22-
const HISTORICAL_CXX_VALUES: [&str; 3] = [
28+
const HISTORICAL_CXX_VALUES: [&str; 9] = [
2329
"/usr/bin/aarch64-linux-gnu-g++",
30+
"/usr/bin/arm-linux-gnueabi-g++",
31+
"/usr/bin/arm-linux-gnueabihf-g++",
32+
"/usr/bin/mips-linux-gnu-g++",
33+
"/usr/bin/mipsel-linux-gnu-g++",
34+
"/usr/bin/powerpc64le-linux-gnu-g++",
2435
"/usr/bin/riscv64-linux-gnu-clang++",
2536
"/usr/bin/riscv64-linux-gnu-g++",
37+
"/usr/bin/s390x-linux-gnu-g++",
2638
];
2739

2840
#[derive(clap::Args)]
@@ -159,7 +171,7 @@ async fn generate() -> Result<String> {
159171
output.push_str("//! DO NOT EDIT\n");
160172
output.push_str("//!\n");
161173
output.push_str("//! Generated with `cargo run dev generate-sysconfig-metadata`\n");
162-
output.push_str("//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20261021/cpython-unix/targets.yml>\n");
174+
output.push_str("//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20261026/cpython-unix/targets.yml>\n");
163175
output.push_str("//!\n");
164176

165177
// Disable clippy/fmt

‎crates/uv-python-managed/download-metadata.json‎

Lines changed: 21192 additions & 15752 deletions
Large diffs are not rendered by default.

‎crates/uv-python-managed/src/sysconfig/generated_mappings.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! DO NOT EDIT
22
//!
33
//! Generated with `cargo run dev generate-sysconfig-metadata`
4-
//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20261021/cpython-unix/targets.yml>
4+
//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20261026/cpython-unix/targets.yml>
55
//!
66
#![allow(clippy::all)]
77
#![cfg_attr(any(), rustfmt::skip)]

‎crates/uv-python-managed/src/sysconfig/mod.rs‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,66 @@ mod tests {
348348
Ok(())
349349
}
350350

351+
#[test]
352+
fn historical_compiler_paths() -> Result<(), Error> {
353+
for (cc, cxx) in [
354+
(
355+
"/usr/bin/arm-linux-gnueabi-gcc",
356+
"/usr/bin/arm-linux-gnueabi-g++",
357+
),
358+
(
359+
"/usr/bin/arm-linux-gnueabihf-gcc",
360+
"/usr/bin/arm-linux-gnueabihf-g++",
361+
),
362+
("/usr/bin/mips-linux-gnu-gcc", "/usr/bin/mips-linux-gnu-g++"),
363+
(
364+
"/usr/bin/mipsel-linux-gnu-gcc",
365+
"/usr/bin/mipsel-linux-gnu-g++",
366+
),
367+
(
368+
"/usr/bin/powerpc64le-linux-gnu-gcc",
369+
"/usr/bin/powerpc64le-linux-gnu-g++",
370+
),
371+
(
372+
"/usr/bin/s390x-linux-gnu-gcc",
373+
"/usr/bin/s390x-linux-gnu-g++",
374+
),
375+
] {
376+
let sysconfigdata = [
377+
("BLDSHARED", cc),
378+
("CC", cc),
379+
("CXX", cxx),
380+
("LDCXXSHARED", cxx),
381+
("LDSHARED", cc),
382+
("LINKCC", cc),
383+
]
384+
.into_iter()
385+
.map(|(key, value)| (key.to_string(), Value::String(format!("{value} -pthread"))))
386+
.collect::<SysconfigData>();
387+
388+
let real_prefix = Path::new("/real/prefix");
389+
let data = patch_sysconfigdata(sysconfigdata, real_prefix);
390+
let patched = data.to_string_pretty()?;
391+
392+
insta::allow_duplicates! {
393+
insta::assert_snapshot!(patched, @r#"
394+
# system configuration generated and used by the sysconfig module
395+
build_time_vars = {
396+
"BLDSHARED": "cc -pthread",
397+
"CC": "cc -pthread",
398+
"CXX": "c++ -pthread",
399+
"LDCXXSHARED": "c++ -pthread",
400+
"LDSHARED": "cc -pthread",
401+
"LINKCC": "cc -pthread",
402+
"PYTHON_BUILD_STANDALONE": 1
403+
}
404+
"#);
405+
}
406+
}
407+
408+
Ok(())
409+
}
410+
351411
#[test]
352412
fn remove_isysroot() -> Result<(), Error> {
353413
let sysconfigdata = [

‎crates/uv-test/src/lib.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ pub const DEFAULT_PYTHON_VERSION: &str = "3.12";
5050

5151
// The expected latest patch version for each Python minor version.
5252
const LATEST_PYTHON_3_16: &str = "3.16.0a1";
53-
const LATEST_PYTHON_3_15: &str = "3.15.1";
54-
const LATEST_PYTHON_3_14: &str = "3.14.9";
55-
const LATEST_PYTHON_3_13: &str = "3.13.17";
56-
pub const LATEST_PYTHON_3_12: &str = "3.12.15";
57-
const LATEST_PYTHON_3_11: &str = "3.11.17";
53+
const LATEST_PYTHON_3_15: &str = "3.15.2";
54+
const LATEST_PYTHON_3_14: &str = "3.14.10";
55+
const LATEST_PYTHON_3_13: &str = "3.13.18";
56+
pub const LATEST_PYTHON_3_12: &str = "3.12.16";
57+
const LATEST_PYTHON_3_11: &str = "3.11.18";
5858
const LATEST_PYTHON_3_10: &str = "3.10.22";
5959

6060
/// Create a new [`TestContext`] with the given Python version.

‎crates/uv/tests/lock/lock.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41109,7 +41109,7 @@ fn lock_conflict_for_disjoint_python_version() -> Result<()> {
4110941109
#[test]
4111041110
fn lock_requires_python_empty_lock_file() -> Result<()> {
4111141111
// Use two patch versions from `.python-versions` to exercise disjoint requirements.
41112-
let (v1, v2) = ("3.13.0", "3.13.17");
41112+
let (v1, v2) = ("3.13.0", "3.13.18");
4111341113
let context = uv_test::test_context_with_versions!(&[v1, v2]);
4111441114

4111541115
let pyproject_toml = context.temp_dir.child("pyproject.toml");
@@ -41198,8 +41198,8 @@ fn lock_requires_python_empty_lock_file() -> Result<()> {
4119841198
uv_snapshot!(context.filters(), context.lock().arg("--upgrade-package=python"), @r"
4119941199
exit_code: 0 (success)
4120041200
----- stderr -----
41201-
Using CPython 3.13.17 interpreter at: [PYTHON-3.13.17]
41202-
warning: Resolving despite existing lockfile due to fork markers being disjoint with `requires-python`: `python_full_version == '3.13.0'` vs `python_full_version == '3.13.17'`
41201+
Using CPython 3.13.18 interpreter at: [PYTHON-3.13.18]
41202+
warning: Resolving despite existing lockfile due to fork markers being disjoint with `requires-python`: `python_full_version == '3.13.0'` vs `python_full_version == '3.13.18'`
4120341203
Resolved 3 packages in [TIME]
4120441204
");
4120541205

@@ -41211,7 +41211,7 @@ fn lock_requires_python_empty_lock_file() -> Result<()> {
4121141211
lock, @r#"
4121241212
version = 1
4121341213
revision = 5
41214-
requires-python = "==3.13.17"
41214+
requires-python = "==3.13.18"
4121541215
resolution-markers = [
4121641216
"sys_platform == 'darwin'",
4121741217
"platform_machine == 'aarch64' and sys_platform == 'linux'",

‎crates/uv/tests/pip_compile/pip_compile.rs‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13467,7 +13467,7 @@ fn dynamic_dependencies_config_settings() -> Result<()> {
1346713467
#[cfg(feature = "test-python-patch")]
1346813468
#[test]
1346913469
fn emit_marker_expression_exciting_linux() -> Result<()> {
13470-
let context = uv_test::test_context!("3.12.15");
13470+
let context = uv_test::test_context!("3.12.16");
1347113471
let requirements_in = context.temp_dir.child("requirements.in");
1347213472
requirements_in.write_str("anyio")?;
1347313473

@@ -13482,7 +13482,7 @@ fn emit_marker_expression_exciting_linux() -> Result<()> {
1348213482
# This file was autogenerated by uv via the following command:
1348313483
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-platform linux --emit-marker-expression
1348413484
# Pinned dependencies known to be valid for:
13485-
# python_full_version == '3.12.15' and platform_python_implementation == 'CPython' and sys_platform == 'linux'
13485+
# python_full_version == '3.12.16' and platform_python_implementation == 'CPython' and sys_platform == 'linux'
1348613486
anyio==4.3.0
1348713487
# via -r requirements.in
1348813488
idna==3.6
@@ -13502,7 +13502,7 @@ fn emit_marker_expression_exciting_linux() -> Result<()> {
1350213502
#[cfg(feature = "test-python-patch")]
1350313503
#[test]
1350413504
fn emit_marker_expression_direct() -> Result<()> {
13505-
let context = uv_test::test_context!("3.12.15");
13505+
let context = uv_test::test_context!("3.12.16");
1350613506
let requirements_in = context.temp_dir.child("requirements.in");
1350713507
requirements_in.write_str("anyio ; sys_platform == 'linux'")?;
1350813508

@@ -13517,7 +13517,7 @@ fn emit_marker_expression_direct() -> Result<()> {
1351713517
# This file was autogenerated by uv via the following command:
1351813518
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-platform linux --emit-marker-expression
1351913519
# Pinned dependencies known to be valid for:
13520-
# python_full_version == '3.12.15' and platform_python_implementation == 'CPython' and sys_platform == 'linux'
13520+
# python_full_version == '3.12.16' and platform_python_implementation == 'CPython' and sys_platform == 'linux'
1352113521
anyio==4.3.0
1352213522
# via -r requirements.in
1352313523
idna==3.6
@@ -13570,7 +13570,7 @@ fn emit_marker_expression_conditional() -> Result<()> {
1357013570
#[cfg(feature = "test-python-patch")]
1357113571
#[test]
1357213572
fn emit_marker_expression_pypy() -> Result<()> {
13573-
let context = uv_test::test_context!("3.12.15");
13573+
let context = uv_test::test_context!("3.12.16");
1357413574
let requirements_in = context.temp_dir.child("requirements.in");
1357513575
requirements_in.write_str("pendulum")?;
1357613576

@@ -13585,7 +13585,7 @@ fn emit_marker_expression_pypy() -> Result<()> {
1358513585
# This file was autogenerated by uv via the following command:
1358613586
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-platform linux --emit-marker-expression
1358713587
# Pinned dependencies known to be valid for:
13588-
# python_full_version == '3.12.15' and implementation_name == 'cpython'
13588+
# python_full_version == '3.12.16' and implementation_name == 'cpython'
1358913589
pendulum==3.0.0
1359013590
# via -r requirements.in
1359113591
python-dateutil==2.9.0.post0

‎crates/uv/tests/python/venv.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,15 +1525,15 @@ fn create_venv_unknown_python_patch() {
15251525
#[cfg(feature = "test-python-patch")]
15261526
#[test]
15271527
fn create_venv_python_patch() {
1528-
let context = uv_test::test_context_with_versions!(&["3.12.15"]);
1528+
let context = uv_test::test_context_with_versions!(&["3.12.16"]);
15291529

15301530
uv_snapshot!(context.filters(), context.venv()
15311531
.arg(context.venv.as_os_str())
15321532
.arg("--python")
1533-
.arg("3.12.15"), @r"
1533+
.arg("3.12.16"), @r"
15341534
exit_code: 0 (success)
15351535
----- stderr -----
1536-
Using CPython 3.12.15 interpreter at: [PYTHON-3.12.15]
1536+
Using CPython 3.12.16 interpreter at: [PYTHON-3.12.16]
15371537
Creating virtual environment at: .venv
15381538
Activate with: source .venv/[BIN]/activate
15391539
"

0 commit comments

Comments
 (0)