Sync latest Python releases (#13996)

Automated update for Python releases.

---------

Co-authored-by: zanieb <2586601+zanieb@users.noreply.github.com>
Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
github-actions[bot] 2025-06-12 09:47:28 -05:00 committed by GitHub
parent a1f9f28762
commit d9c34259b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1225 additions and 425 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/20250610/cpython-unix/targets.yml";
const TARGETS_YML_URL: &str = "https://raw.githubusercontent.com/astral-sh/python-build-standalone/refs/tags/20250612/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/20250610/cpython-unix/targets.yml>\n");
output.push_str("//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20250612/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/20250610/cpython-unix/targets.yml>
//! Targets from <https://github.com/astral-sh/python-build-standalone/blob/20250612/cpython-unix/targets.yml>
//!
#![allow(clippy::all)]
#![cfg_attr(any(), rustfmt::skip)]

View file

@ -25,8 +25,8 @@ fn python_install() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM]
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM]
");
let bin_python = context
@ -62,8 +62,8 @@ fn python_install() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
~ cpython-3.13.4-[PLATFORM]
Installed Python 3.13.5 in [TIME]
~ cpython-3.13.5-[PLATFORM]
");
// Uninstallation requires an argument
@ -88,8 +88,8 @@ fn python_install() {
----- stderr -----
Searching for Python versions matching: Python 3.13
Uninstalled Python 3.13.4 in [TIME]
- cpython-3.13.4-[PLATFORM]
Uninstalled Python 3.13.5 in [TIME]
- cpython-3.13.5-[PLATFORM]
");
}
@ -109,7 +109,7 @@ fn python_reinstall() {
----- stderr -----
Installed 2 versions in [TIME]
+ cpython-3.12.11-[PLATFORM]
+ cpython-3.13.4-[PLATFORM]
+ cpython-3.13.5-[PLATFORM]
");
// Reinstall a single version
@ -119,8 +119,8 @@ fn python_reinstall() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
~ cpython-3.13.4-[PLATFORM]
Installed Python 3.13.5 in [TIME]
~ cpython-3.13.5-[PLATFORM]
");
// Reinstall multiple versions
@ -132,7 +132,7 @@ fn python_reinstall() {
----- stderr -----
Installed 2 versions in [TIME]
~ cpython-3.12.11-[PLATFORM]
~ cpython-3.13.4-[PLATFORM]
~ cpython-3.13.5-[PLATFORM]
");
// Reinstalling a version that is not installed should also work
@ -336,8 +336,8 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM] (python, python3, python3.13)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM] (python, python3, python3.13)
");
let bin_python = context
@ -379,8 +379,8 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
~ cpython-3.13.4-[PLATFORM] (python, python3, python3.13)
Installed Python 3.13.5 in [TIME]
~ cpython-3.13.5-[PLATFORM] (python, python3, python3.13)
");
// The executable should still be present in the bin directory
@ -393,8 +393,8 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM] (python, python3, python3.13)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM] (python, python3, python3.13)
");
// The executable should still be present in the bin directory
@ -410,7 +410,7 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
error: Failed to install cpython-3.13.4-[PLATFORM]
error: Failed to install cpython-3.13.5-[PLATFORM]
Caused by: Executable already exists at `[BIN]/python3.13` but is not managed by uv; use `--force` to replace it
");
@ -420,8 +420,8 @@ fn python_install_preview() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM] (python3.13)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM] (python3.13)
");
bin_python.assert(predicate::path::exists());
@ -452,8 +452,8 @@ fn python_install_preview() {
----- stderr -----
Searching for Python versions matching: Python 3.13
Uninstalled Python 3.13.4 in [TIME]
- cpython-3.13.4-[PLATFORM] (python, python3, python3.13)
Uninstalled Python 3.13.5 in [TIME]
- cpython-3.13.5-[PLATFORM] (python, python3, python3.13)
");
// The executable should be removed
@ -648,8 +648,8 @@ fn python_install_freethreaded() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4+freethreaded-[PLATFORM] (python3.13t)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5+freethreaded-[PLATFORM] (python3.13t)
");
let bin_python = context
@ -681,8 +681,8 @@ fn python_install_freethreaded() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM]
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM]
");
// Should not work with older Python versions
@ -703,8 +703,8 @@ fn python_install_freethreaded() {
----- stderr -----
Searching for Python installations
Uninstalled 2 versions in [TIME]
- cpython-3.13.4+freethreaded-[PLATFORM] (python3.13t)
- cpython-3.13.4-[PLATFORM]
- cpython-3.13.5+freethreaded-[PLATFORM] (python3.13t)
- cpython-3.13.5-[PLATFORM]
");
}
@ -782,8 +782,8 @@ fn python_install_default() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM] (python3.13)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM] (python3.13)
");
// Only the minor versioned executable should be installed
@ -798,8 +798,8 @@ fn python_install_default() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM] (python, python3)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM] (python, python3)
");
// Now all the executables should be installed
@ -815,8 +815,8 @@ fn python_install_default() {
----- stderr -----
Searching for Python installations
Uninstalled Python 3.13.4 in [TIME]
- cpython-3.13.4-[PLATFORM] (python, python3, python3.13)
Uninstalled Python 3.13.5 in [TIME]
- cpython-3.13.5-[PLATFORM] (python, python3, python3.13)
");
// The executables should be removed
@ -831,8 +831,8 @@ fn python_install_default() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM] (python, python3, python3.13)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM] (python, python3, python3.13)
");
// Since it's a default install, we should include all of the executables
@ -848,8 +848,8 @@ fn python_install_default() {
----- stderr -----
Searching for Python versions matching: Python 3.13
Uninstalled Python 3.13.4 in [TIME]
- cpython-3.13.4-[PLATFORM] (python, python3, python3.13)
Uninstalled Python 3.13.5 in [TIME]
- cpython-3.13.5-[PLATFORM] (python, python3, python3.13)
");
// We should remove all the executables
@ -945,8 +945,8 @@ fn python_install_default() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM] (python, python3, python3.13)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM] (python, python3, python3.13)
");
// All the executables should exist
@ -961,7 +961,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.13.4-[PLATFORM]/bin/python3.13"
read_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.13.5-[PLATFORM]/bin/python3.13"
);
});
@ -969,7 +969,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link_path(&bin_python_minor_13), @"[TEMP_DIR]/managed/cpython-3.13.4-[PLATFORM]/bin/python3.13"
read_link_path(&bin_python_minor_13), @"[TEMP_DIR]/managed/cpython-3.13.5-[PLATFORM]/bin/python3.13"
);
});
@ -985,7 +985,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.13.4-[PLATFORM]/bin/python3.13"
read_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.13.5-[PLATFORM]/bin/python3.13"
);
});
} else {
@ -993,7 +993,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.13.4-[PLATFORM]/python"
read_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.13.5-[PLATFORM]/python"
);
});
@ -1001,7 +1001,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link_path(&bin_python_minor_13), @"[TEMP_DIR]/managed/cpython-3.13.4-[PLATFORM]/python"
read_link_path(&bin_python_minor_13), @"[TEMP_DIR]/managed/cpython-3.13.5-[PLATFORM]/python"
);
});
@ -1017,7 +1017,7 @@ fn python_install_default() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.13.4-[PLATFORM]/python"
read_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.13.5-[PLATFORM]/python"
);
});
}
@ -1092,8 +1092,8 @@ fn python_install_preview_broken_link() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM] (python3.13)
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM] (python3.13)
");
// We should replace the broken symlink
@ -1101,7 +1101,7 @@ fn python_install_preview_broken_link() {
filters => context.filters(),
}, {
insta::assert_snapshot!(
read_link_path(&bin_python), @"[TEMP_DIR]/managed/cpython-3.13.4-[PLATFORM]/bin/python3.13"
read_link_path(&bin_python), @"[TEMP_DIR]/managed/cpython-3.13.5-[PLATFORM]/bin/python3.13"
);
});
}
@ -1308,15 +1308,15 @@ fn python_install_314() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM]
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM]
");
uv_snapshot!(context.filters(), context.python_find().arg("3"), @r"
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.4-[PLATFORM]/[INSTALL-BIN]/python
[TEMP_DIR]/managed/cpython-3.13.5-[PLATFORM]/[INSTALL-BIN]/python
----- stderr -----
");
@ -1348,8 +1348,8 @@ fn python_install_cached() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM]
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM]
");
let bin_python = context
@ -1378,8 +1378,8 @@ fn python_install_cached() {
----- stderr -----
Searching for Python versions matching: Python 3.13
Uninstalled Python 3.13.4 in [TIME]
- cpython-3.13.4-[PLATFORM]
Uninstalled Python 3.13.5 in [TIME]
- cpython-3.13.5-[PLATFORM]
");
// The cached archive can be installed offline
@ -1392,8 +1392,8 @@ fn python_install_cached() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-[PLATFORM]
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-[PLATFORM]
");
// 3.12 isn't cached, so it can't be installed
@ -1429,7 +1429,7 @@ fn python_install_emulated_macos() {
success: true
exit_code: 0
----- stdout -----
cpython-3.13.4-macos-aarch64-none <download available>
cpython-3.13.5-macos-aarch64-none <download available>
----- stderr -----
");
@ -1441,8 +1441,8 @@ fn python_install_emulated_macos() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-macos-x86_64-none
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-macos-x86_64-none
");
// It should be discoverable with `uv python find`
@ -1450,7 +1450,7 @@ fn python_install_emulated_macos() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.4-macos-x86_64-none/bin/python3.13
[TEMP_DIR]/managed/cpython-3.13.5-macos-x86_64-none/bin/python3.13
----- stderr -----
");
@ -1460,8 +1460,8 @@ fn python_install_emulated_macos() {
success: true
exit_code: 0
----- stdout -----
cpython-3.13.4-macos-aarch64-none <download available>
cpython-3.13.4-macos-x86_64-none managed/cpython-3.13.4-macos-x86_64-none/bin/python3.13
cpython-3.13.5-macos-aarch64-none <download available>
cpython-3.13.5-macos-x86_64-none managed/cpython-3.13.5-macos-x86_64-none/bin/python3.13
----- stderr -----
");
@ -1472,8 +1472,8 @@ fn python_install_emulated_macos() {
----- stdout -----
----- stderr -----
Installed Python 3.13.4 in [TIME]
+ cpython-3.13.4-macos-aarch64-none
Installed Python 3.13.5 in [TIME]
+ cpython-3.13.5-macos-aarch64-none
");
// Once we've installed the native version, it should be preferred over x86_64
@ -1481,7 +1481,7 @@ fn python_install_emulated_macos() {
success: true
exit_code: 0
----- stdout -----
[TEMP_DIR]/managed/cpython-3.13.4-macos-aarch64-none/bin/python3.13
[TEMP_DIR]/managed/cpython-3.13.5-macos-aarch64-none/bin/python3.13
----- stderr -----
");