Sync latest Python releases (#16943)

Automated update for Python releases.

---------

Co-authored-by: jjhelmus <1050278+jjhelmus@users.noreply.github.com>
Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
github-actions[bot] 2025-12-06 00:03:57 +00:00 committed by GitHub
parent c269619b1b
commit 9635258867
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 3219 additions and 703 deletions

View File

@ -11,7 +11,7 @@ use crate::ROOT_DIR;
use crate::generate_all::Mode;
/// Contains current supported targets
const TARGETS_YML_URL: &str = "https://raw.githubusercontent.com/astral-sh/python-build-standalone/refs/tags/20251120/cpython-unix/targets.yml";
const TARGETS_YML_URL: &str = "https://raw.githubusercontent.com/astral-sh/python-build-standalone/refs/tags/20251205/cpython-unix/targets.yml";
#[derive(clap::Args)]
pub(crate) struct Args {
@ -130,7 +130,7 @@ async fn generate() -> Result<String> {
output.push_str("//! DO NOT EDIT\n");
output.push_str("//!\n");
output.push_str("//! Generated with `cargo run dev generate-sysconfig-metadata`\n");
output.push_str("//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20251120/cpython-unix/targets.yml>\n");
output.push_str("//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20251205/cpython-unix/targets.yml>\n");
output.push_str("//!\n");
// Disable clippy/fmt

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
//! DO NOT EDIT
//!
//! Generated with `cargo run dev generate-sysconfig-metadata`
//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20251120/cpython-unix/targets.yml>
//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20251205/cpython-unix/targets.yml>
//!
#![allow(clippy::all)]
#![cfg_attr(any(), rustfmt::skip)]

View File

@ -13259,7 +13259,7 @@ fn install_missing_python_with_target() {
----- stdout -----
----- stderr -----
Using CPython 3.14.1
Using CPython 3.14.2
Resolved 3 packages in [TIME]
Prepared 3 packages in [TIME]
Installed 3 packages in [TIME]

View File

@ -32,8 +32,8 @@ fn python_install() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
let bin_python = context
@ -53,7 +53,7 @@ fn python_install() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link(&bin_python), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
read_link(&bin_python), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
} else if cfg!(windows) {
@ -61,7 +61,7 @@ fn python_install() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link(&bin_python), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
read_link(&bin_python), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
}
@ -104,8 +104,8 @@ fn python_install() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
~ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
~ cpython-3.14.2-[PLATFORM] (python3.14)
");
// The executable should still be present in the bin directory
@ -133,8 +133,8 @@ fn python_install() {
----- stderr -----
Searching for Python versions matching: Python 3.14
Uninstalled Python 3.14.1 in [TIME]
- cpython-3.14.1-[PLATFORM] (python3.14)
Uninstalled Python 3.14.2 in [TIME]
- cpython-3.14.2-[PLATFORM] (python3.14)
");
// The executable should be removed
@ -158,7 +158,7 @@ fn python_reinstall() {
----- stderr -----
Installed 2 versions in [TIME]
+ cpython-3.12.12-[PLATFORM] (python3.12)
+ cpython-3.13.10-[PLATFORM] (python3.13)
+ cpython-3.13.11-[PLATFORM] (python3.13)
");
// Reinstall a single version
@ -168,8 +168,8 @@ fn python_reinstall() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
~ cpython-3.13.10-[PLATFORM] (python3.13)
Installed Python 3.13.11 in [TIME]
~ cpython-3.13.11-[PLATFORM] (python3.13)
");
// Reinstall multiple versions
@ -181,7 +181,7 @@ fn python_reinstall() {
----- stderr -----
Installed 2 versions in [TIME]
~ cpython-3.12.12-[PLATFORM] (python3.12)
~ cpython-3.13.10-[PLATFORM] (python3.13)
~ cpython-3.13.11-[PLATFORM] (python3.13)
");
// Reinstalling a version that is not installed should also work
@ -390,8 +390,8 @@ fn python_install_force() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
let bin_python = context
@ -405,8 +405,8 @@ fn python_install_force() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
// The executable should still be present in the bin directory
@ -422,7 +422,7 @@ fn python_install_force() {
----- stdout -----
----- stderr -----
warning: Failed to install executable for cpython-3.14.1-[PLATFORM]
warning: Failed to install executable for cpython-3.14.2-[PLATFORM]
Caused by: Executable already exists at `[BIN]/python3.14` but is not managed by uv; use `--force` to replace it
");
@ -432,8 +432,8 @@ fn python_install_force() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
bin_python.assert(predicate::path::exists());
@ -593,8 +593,8 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
let bin_python = context
@ -655,8 +655,8 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
~ cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Installed Python 3.14.2 in [TIME]
~ cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// The executable should still be present in the bin directory
@ -669,8 +669,8 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// The executable should still be present in the bin directory
@ -686,7 +686,7 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
warning: Failed to install executable for cpython-3.14.1-[PLATFORM]
warning: Failed to install executable for cpython-3.14.2-[PLATFORM]
Caused by: Executable already exists at `[BIN]/python3.14` but is not managed by uv; use `--force` to replace it
");
@ -697,7 +697,7 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
error: Failed to install executable for cpython-3.14.1-[PLATFORM]
error: Failed to install executable for cpython-3.14.2-[PLATFORM]
Caused by: Executable already exists at `[BIN]/python3.14` but is not managed by uv; use `--force` to replace it
");
uv_snapshot!(context.filters(), context.python_install().arg("--preview").arg("3.14").env(EnvVars::UV_PYTHON_INSTALL_BIN, "1"), @r"
@ -706,7 +706,7 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
error: Failed to install executable for cpython-3.14.1-[PLATFORM]
error: Failed to install executable for cpython-3.14.2-[PLATFORM]
Caused by: Executable already exists at `[BIN]/python3.14` but is not managed by uv; use `--force` to replace it
");
@ -734,8 +734,8 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
bin_python.assert(predicate::path::exists());
@ -766,8 +766,8 @@ fn python_install_preview() {
----- stderr -----
Searching for Python versions matching: Python 3.14
Uninstalled Python 3.14.1 in [TIME]
- cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Uninstalled Python 3.14.2 in [TIME]
- cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// The executable should be removed
@ -869,8 +869,8 @@ fn python_install_preview_no_bin() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM]
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM]
");
let bin_python = context
@ -1077,8 +1077,8 @@ fn python_install_freethreaded() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10+freethreaded-[PLATFORM] (python3.13t)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11+freethreaded-[PLATFORM] (python3.13t)
");
let bin_python = context
@ -1130,7 +1130,7 @@ fn python_install_freethreaded() {
----- stdout -----
----- stderr -----
Using CPython 3.13.10+freethreaded
Using CPython 3.13.11+freethreaded
Creating virtual environment at: .venv
Activate with: source .venv/[BIN]/activate
");
@ -1189,8 +1189,8 @@ fn python_install_freethreaded() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-[PLATFORM] (python3.13)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-[PLATFORM] (python3.13)
");
// Should not work with older Python versions
@ -1211,8 +1211,8 @@ fn python_install_freethreaded() {
----- stderr -----
Searching for Python installations
Uninstalled 2 versions in [TIME]
- cpython-3.13.10+freethreaded-[PLATFORM] (python3.13t)
- cpython-3.13.10-[PLATFORM] (python3.13)
- cpython-3.13.11+freethreaded-[PLATFORM] (python3.13t)
- cpython-3.13.11-[PLATFORM] (python3.13)
");
}
@ -1260,8 +1260,8 @@ fn python_install_debug() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10+debug-[PLATFORM] (python3.13d)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11+debug-[PLATFORM] (python3.13d)
");
let bin_python = context
@ -1313,8 +1313,8 @@ fn python_install_debug() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-[PLATFORM] (python3.13)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-[PLATFORM] (python3.13)
");
// Now we should prefer the non-debug version without opt-in
@ -1322,7 +1322,7 @@ fn python_install_debug() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.10-[PLATFORM]/bin/python3.13
[TEMP_DIR]/managed/cpython-3.13.11-[PLATFORM]/bin/python3.13
----- stderr -----
");
@ -1367,8 +1367,8 @@ fn python_install_debug() {
Searching for Python installations
Uninstalled 3 versions in [TIME]
- cpython-3.12.12+debug-[PLATFORM] (python3.12d)
- cpython-3.13.10+debug-[PLATFORM] (python3.13d)
- cpython-3.13.10-[PLATFORM] (python3.13)
- cpython-3.13.11+debug-[PLATFORM] (python3.13d)
- cpython-3.13.11-[PLATFORM] (python3.13)
");
}
@ -1389,8 +1389,8 @@ fn python_install_debug_freethreaded() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10+freethreaded+debug-[PLATFORM] (python3.13td)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11+freethreaded+debug-[PLATFORM] (python3.13td)
");
let bin_python = context
@ -1453,8 +1453,8 @@ fn python_install_debug_freethreaded() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-[PLATFORM] (python3.13)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-[PLATFORM] (python3.13)
");
// Should be distinct from 3.13t
@ -1464,8 +1464,8 @@ fn python_install_debug_freethreaded() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10+freethreaded-[PLATFORM] (python3.13t)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11+freethreaded-[PLATFORM] (python3.13t)
");
// Should be distinct from 3.13d
@ -1475,8 +1475,8 @@ fn python_install_debug_freethreaded() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10+debug-[PLATFORM] (python3.13d)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11+debug-[PLATFORM] (python3.13d)
");
// Now we should prefer the non-debug version without opt-in
@ -1484,7 +1484,7 @@ fn python_install_debug_freethreaded() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.10-[PLATFORM]/bin/python3.13
[TEMP_DIR]/managed/cpython-3.13.11-[PLATFORM]/bin/python3.13
----- stderr -----
");
@ -1493,7 +1493,7 @@ fn python_install_debug_freethreaded() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.10+freethreaded-[PLATFORM]/bin/python3.13t
[TEMP_DIR]/managed/cpython-3.13.11+freethreaded-[PLATFORM]/bin/python3.13t
----- stderr -----
");
@ -1516,10 +1516,10 @@ fn python_install_debug_freethreaded() {
----- stderr -----
Searching for Python installations
Uninstalled 4 versions in [TIME]
- cpython-3.13.10+freethreaded+debug-[PLATFORM] (python3.13td)
- cpython-3.13.10+freethreaded-[PLATFORM] (python3.13t)
- cpython-3.13.10+debug-[PLATFORM] (python3.13d)
- cpython-3.13.10-[PLATFORM] (python3.13)
- cpython-3.13.11+freethreaded+debug-[PLATFORM] (python3.13td)
- cpython-3.13.11+freethreaded-[PLATFORM] (python3.13t)
- cpython-3.13.11+debug-[PLATFORM] (python3.13d)
- cpython-3.13.11-[PLATFORM] (python3.13)
");
}
@ -1589,8 +1589,8 @@ fn python_install_default() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
// Only the minor versioned executable should be installed
@ -1606,8 +1606,8 @@ fn python_install_default() {
----- stderr -----
warning: The `--default` option is experimental and may change without warning. Pass `--preview-features python-install-default` to disable this warning
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python, python3)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python, python3)
");
// Now all the executables should be installed
@ -1623,8 +1623,8 @@ fn python_install_default() {
----- stderr -----
Searching for Python installations
Uninstalled Python 3.14.1 in [TIME]
- cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Uninstalled Python 3.14.2 in [TIME]
- cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// The executables should be removed
@ -1640,8 +1640,8 @@ fn python_install_default() {
----- stderr -----
warning: The `--default` option is experimental and may change without warning. Pass `--preview-features python-install-default` to disable this warning
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// Since it's a default install, we should include all of the executables
@ -1655,7 +1655,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
@ -1663,7 +1663,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
read_link(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
@ -1671,7 +1671,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
} else if cfg!(windows) {
@ -1679,7 +1679,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
@ -1687,7 +1687,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
read_link(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
@ -1695,7 +1695,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
}
@ -1708,8 +1708,8 @@ fn python_install_default() {
----- stderr -----
Searching for Python versions matching: Python 3.14
Uninstalled Python 3.14.1 in [TIME]
- cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Uninstalled Python 3.14.2 in [TIME]
- cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// We should remove all the executables
@ -1828,8 +1828,8 @@ fn python_install_default_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
// Only the minor versioned executable should be installed
@ -1844,8 +1844,8 @@ fn python_install_default_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python, python3)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python, python3)
");
// Now all the executables should be installed
@ -1861,8 +1861,8 @@ fn python_install_default_preview() {
----- stderr -----
Searching for Python installations
Uninstalled Python 3.14.1 in [TIME]
- cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Uninstalled Python 3.14.2 in [TIME]
- cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// The executables should be removed
@ -1877,8 +1877,8 @@ fn python_install_default_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// Since it's a default install, we should include all of the executables
@ -1895,7 +1895,7 @@ fn python_install_default_preview() {
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14-[PLATFORM]/bin/python3.14"
);
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
@ -1906,7 +1906,7 @@ fn python_install_default_preview() {
read_link(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14-[PLATFORM]/bin/python3.14"
);
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
canonicalize_link_path(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
@ -1917,7 +1917,7 @@ fn python_install_default_preview() {
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14-[PLATFORM]/bin/python3.14"
);
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
} else if cfg!(windows) {
@ -1928,7 +1928,7 @@ fn python_install_default_preview() {
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14-[PLATFORM]/python"
);
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
@ -1939,7 +1939,7 @@ fn python_install_default_preview() {
read_link(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14-[PLATFORM]/python"
);
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
canonicalize_link_path(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
@ -1950,7 +1950,7 @@ fn python_install_default_preview() {
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14-[PLATFORM]/python"
);
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
}
@ -1963,8 +1963,8 @@ fn python_install_default_preview() {
----- stderr -----
Searching for Python versions matching: Python 3.14
Uninstalled Python 3.14.1 in [TIME]
- cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Uninstalled Python 3.14.2 in [TIME]
- cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// We should remove all the executables
@ -2078,8 +2078,8 @@ fn python_install_default_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python, python3, python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python, python3, python3.14)
");
// All the executables should exist
@ -2094,7 +2094,7 @@ fn python_install_default_preview() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
@ -2102,7 +2102,7 @@ fn python_install_default_preview() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
canonicalize_link_path(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
@ -2118,7 +2118,7 @@ fn python_install_default_preview() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14"
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14"
);
});
} else if cfg!(windows) {
@ -2126,7 +2126,7 @@ fn python_install_default_preview() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
@ -2134,7 +2134,7 @@ fn python_install_default_preview() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
canonicalize_link_path(&bin_python_minor_14), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
@ -2150,7 +2150,7 @@ fn python_install_default_preview() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/python"
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/python"
);
});
}
@ -2242,8 +2242,8 @@ fn python_install_broken_link() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-[PLATFORM] (python3.13)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-[PLATFORM] (python3.13)
");
// We should replace the broken symlink
@ -2251,7 +2251,7 @@ fn python_install_broken_link() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
canonicalize_link_path(&bin_python), @"[TEMP_DIR]/managed/cpython-3.13.10-[PLATFORM]/bin/python3.13"
canonicalize_link_path(&bin_python), @"[TEMP_DIR]/managed/cpython-3.13.11-[PLATFORM]/bin/python3.13"
);
});
}
@ -2513,15 +2513,15 @@ fn python_find_prerelease() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-[PLATFORM] (python3.13)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-[PLATFORM] (python3.13)
");
uv_snapshot!(context.filters(), context.python_find().arg("3"), @r"
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.10-[PLATFORM]/[INSTALL-BIN]/[PYTHON]
[TEMP_DIR]/managed/cpython-3.13.11-[PLATFORM]/[INSTALL-BIN]/[PYTHON]
----- stderr -----
");
@ -2554,8 +2554,8 @@ fn python_install_cached() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
let bin_python = context
@ -2584,8 +2584,8 @@ fn python_install_cached() {
----- stderr -----
Searching for Python versions matching: Python 3.14
Uninstalled Python 3.14.1 in [TIME]
- cpython-3.14.1-[PLATFORM] (python3.14)
Uninstalled Python 3.14.2 in [TIME]
- cpython-3.14.2-[PLATFORM] (python3.14)
");
// The cached archive can be installed offline
@ -2598,8 +2598,8 @@ fn python_install_cached() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
// 3.12 isn't cached, so it can't be installed
@ -2644,8 +2644,8 @@ fn python_install_no_cache() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
let bin_python = context
@ -2682,8 +2682,8 @@ fn python_install_no_cache() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
~ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
~ cpython-3.14.2-[PLATFORM] (python3.14)
");
// Uninstallation requires an argument
@ -2708,8 +2708,8 @@ fn python_install_no_cache() {
----- stderr -----
Searching for Python versions matching: Python 3.14
Uninstalled Python 3.14.1 in [TIME]
- cpython-3.14.1-[PLATFORM] (python3.14)
Uninstalled Python 3.14.2 in [TIME]
- cpython-3.14.2-[PLATFORM] (python3.14)
");
// 3.12 isn't cached, so it can't be installed
@ -2762,7 +2762,7 @@ fn python_install_emulated_macos() {
success: true
exit_code: 0
----- stdout -----
cpython-3.13.10-macos-aarch64-none <download available>
cpython-3.13.11-macos-aarch64-none <download available>
----- stderr -----
");
@ -2774,8 +2774,8 @@ fn python_install_emulated_macos() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-macos-x86_64-none (python3.13)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-macos-x86_64-none (python3.13)
");
// It should be discoverable with `uv python find`
@ -2783,7 +2783,7 @@ fn python_install_emulated_macos() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.10-macos-x86_64-none/bin/python3.13
[TEMP_DIR]/managed/cpython-3.13.11-macos-x86_64-none/bin/python3.13
----- stderr -----
");
@ -2793,8 +2793,8 @@ fn python_install_emulated_macos() {
success: true
exit_code: 0
----- stdout -----
cpython-3.13.10-macos-aarch64-none <download available>
cpython-3.13.10-macos-x86_64-none managed/cpython-3.13.10-macos-x86_64-none/bin/python3.13
cpython-3.13.11-macos-aarch64-none <download available>
cpython-3.13.11-macos-x86_64-none managed/cpython-3.13.11-macos-x86_64-none/bin/python3.13
----- stderr -----
");
@ -2805,8 +2805,8 @@ fn python_install_emulated_macos() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-macos-aarch64-none
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-macos-aarch64-none
");
// Once we've installed the native version, it should be preferred over x86_64
@ -2814,7 +2814,7 @@ fn python_install_emulated_macos() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.10-macos-aarch64-none/bin/python3.13
[TEMP_DIR]/managed/cpython-3.13.11-macos-aarch64-none/bin/python3.13
----- stderr -----
");
@ -2833,7 +2833,7 @@ fn python_install_emulated_windows_x86_on_x64() {
success: true
exit_code: 0
----- stdout -----
cpython-3.13.10-windows-x86_64-none <download available>
cpython-3.13.11-windows-x86_64-none <download available>
----- stderr -----
");
@ -2845,8 +2845,8 @@ fn python_install_emulated_windows_x86_on_x64() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-windows-x86-none (python3.13)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-windows-x86-none (python3.13)
");
// It should be discoverable with `uv python find`
@ -2854,7 +2854,7 @@ fn python_install_emulated_windows_x86_on_x64() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.10-windows-x86-none/python
[TEMP_DIR]/managed/cpython-3.13.11-windows-x86-none/python
----- stderr -----
");
@ -2864,8 +2864,8 @@ fn python_install_emulated_windows_x86_on_x64() {
success: true
exit_code: 0
----- stdout -----
cpython-3.13.10-windows-x86_64-none <download available>
cpython-3.13.10-windows-x86-none managed/cpython-3.13.10-windows-x86-none/python
cpython-3.13.11-windows-x86_64-none <download available>
cpython-3.13.11-windows-x86-none managed/cpython-3.13.11-windows-x86-none/python
----- stderr -----
");
@ -2876,8 +2876,8 @@ fn python_install_emulated_windows_x86_on_x64() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-windows-x86_64-none
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-windows-x86_64-none
");
// Once we've installed the native version, it should be preferred over x86_32
@ -2885,7 +2885,7 @@ fn python_install_emulated_windows_x86_on_x64() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.10-windows-x86_64-none/python
[TEMP_DIR]/managed/cpython-3.13.11-windows-x86_64-none/python
----- stderr -----
");
@ -3598,8 +3598,8 @@ fn python_install_pyodide() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
// Now, we should prefer that
@ -3607,7 +3607,7 @@ fn python_install_pyodide() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.14.1-[PLATFORM]/bin/python3.14
[TEMP_DIR]/managed/cpython-3.14.2-[PLATFORM]/bin/python3.14
----- stderr -----
");
@ -3792,8 +3792,8 @@ fn python_install_upgrade() {
----- stdout -----
----- stderr -----
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
// Provide `--upgrade` as an `install` option without any versions again!
@ -3921,8 +3921,8 @@ fn python_install_upgrade_version_file() {
----- stdout -----
----- stderr -----
Installed Python 3.13.10 in [TIME]
+ cpython-3.13.10-[PLATFORM] (python3.13)
Installed Python 3.13.11 in [TIME]
+ cpython-3.13.11-[PLATFORM] (python3.13)
");
// Provide `--upgrade` as an `install` option without any versions again!

View File

@ -86,8 +86,8 @@ fn python_upgrade() {
----- stderr -----
warning: `uv python upgrade` is experimental and may change without warning. Pass `--preview-features python-upgrade` to disable this warning
Installed Python 3.14.1 in [TIME]
+ cpython-3.14.1-[PLATFORM] (python3.14)
Installed Python 3.14.2 in [TIME]
+ cpython-3.14.2-[PLATFORM] (python3.14)
");
}