mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-17 18:57:30 +00:00
Sync latest Python releases (#16229)
Add python-build-standalone 20251010 for CPython 3.12.12, 3.11.14, 3.10.19 and 3.9.24. Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
This commit is contained in:
parent
b4168e665e
commit
d54a5bb5cb
4 changed files with 3006 additions and 523 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -157,7 +157,7 @@ fn python_reinstall() {
|
|||
|
||||
----- stderr -----
|
||||
Installed 2 versions in [TIME]
|
||||
+ cpython-3.12.11-[PLATFORM] (python3.12)
|
||||
+ cpython-3.12.12-[PLATFORM] (python3.12)
|
||||
+ cpython-3.13.8-[PLATFORM] (python3.13)
|
||||
");
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ fn python_reinstall() {
|
|||
|
||||
----- stderr -----
|
||||
Installed 2 versions in [TIME]
|
||||
~ cpython-3.12.11-[PLATFORM] (python3.12)
|
||||
~ cpython-3.12.12-[PLATFORM] (python3.12)
|
||||
~ cpython-3.13.8-[PLATFORM] (python3.13)
|
||||
");
|
||||
|
||||
|
|
@ -191,8 +191,8 @@ fn python_reinstall() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.11.13 in [TIME]
|
||||
+ cpython-3.11.13-[PLATFORM] (python3.11)
|
||||
Installed Python 3.11.14 in [TIME]
|
||||
+ cpython-3.11.14-[PLATFORM] (python3.11)
|
||||
");
|
||||
}
|
||||
|
||||
|
|
@ -225,8 +225,8 @@ fn python_reinstall_patch() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.12.11 in [TIME]
|
||||
+ cpython-3.12.11-[PLATFORM] (python3.12)
|
||||
Installed Python 3.12.12 in [TIME]
|
||||
+ cpython-3.12.12-[PLATFORM] (python3.12)
|
||||
");
|
||||
}
|
||||
|
||||
|
|
@ -453,8 +453,8 @@ fn python_install_minor() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.11.13 in [TIME]
|
||||
+ cpython-3.11.13-[PLATFORM] (python3.11)
|
||||
Installed Python 3.11.14 in [TIME]
|
||||
+ cpython-3.11.14-[PLATFORM] (python3.11)
|
||||
");
|
||||
|
||||
let bin_python = context
|
||||
|
|
@ -470,7 +470,7 @@ fn python_install_minor() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
read_link(&bin_python), @"[TEMP_DIR]/managed/cpython-3.11.13-[PLATFORM]/bin/python3.11"
|
||||
read_link(&bin_python), @"[TEMP_DIR]/managed/cpython-3.11.14-[PLATFORM]/bin/python3.11"
|
||||
);
|
||||
});
|
||||
} else if cfg!(windows) {
|
||||
|
|
@ -478,7 +478,7 @@ fn python_install_minor() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
read_link(&bin_python), @"[TEMP_DIR]/managed/cpython-3.11.13-[PLATFORM]/python"
|
||||
read_link(&bin_python), @"[TEMP_DIR]/managed/cpython-3.11.14-[PLATFORM]/python"
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -490,8 +490,8 @@ fn python_install_minor() {
|
|||
|
||||
----- stderr -----
|
||||
Searching for Python versions matching: Python 3.11
|
||||
Uninstalled Python 3.11.13 in [TIME]
|
||||
- cpython-3.11.13-[PLATFORM] (python3.11)
|
||||
Uninstalled Python 3.11.14 in [TIME]
|
||||
- cpython-3.11.14-[PLATFORM] (python3.11)
|
||||
");
|
||||
|
||||
// The executable should be removed
|
||||
|
|
@ -780,8 +780,8 @@ fn python_install_preview() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.11.13 in [TIME]
|
||||
+ cpython-3.11.13-[PLATFORM] (python3.11)
|
||||
Installed Python 3.11.14 in [TIME]
|
||||
+ cpython-3.11.14-[PLATFORM] (python3.11)
|
||||
");
|
||||
|
||||
let bin_python = context
|
||||
|
|
@ -814,8 +814,8 @@ fn python_install_preview() {
|
|||
|
||||
----- stderr -----
|
||||
Searching for Python versions matching: Python 3.11
|
||||
Uninstalled Python 3.11.13 in [TIME]
|
||||
- cpython-3.11.13-[PLATFORM] (python3.11)
|
||||
Uninstalled Python 3.11.14 in [TIME]
|
||||
- cpython-3.11.14-[PLATFORM] (python3.11)
|
||||
");
|
||||
|
||||
// Install multiple patch versions
|
||||
|
|
@ -1354,8 +1354,8 @@ fn python_install_debug() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.12.11 in [TIME]
|
||||
+ cpython-3.12.11+debug-[PLATFORM] (python3.12d)
|
||||
Installed Python 3.12.12 in [TIME]
|
||||
+ cpython-3.12.12+debug-[PLATFORM] (python3.12d)
|
||||
");
|
||||
|
||||
uv_snapshot!(context.filters(), context.python_uninstall().arg("--all"), @r"
|
||||
|
|
@ -1366,7 +1366,7 @@ fn python_install_debug() {
|
|||
----- stderr -----
|
||||
Searching for Python installations
|
||||
Uninstalled 3 versions in [TIME]
|
||||
- cpython-3.12.11+debug-[PLATFORM] (python3.12d)
|
||||
- cpython-3.12.12+debug-[PLATFORM] (python3.12d)
|
||||
- cpython-3.13.8+debug-[PLATFORM] (python3.13d)
|
||||
- cpython-3.13.8-[PLATFORM] (python3.13)
|
||||
");
|
||||
|
|
@ -1735,8 +1735,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.12.11 in [TIME]
|
||||
+ cpython-3.12.11-[PLATFORM] (python, python3, python3.12)
|
||||
Installed Python 3.12.12 in [TIME]
|
||||
+ cpython-3.12.12-[PLATFORM] (python, python3, python3.12)
|
||||
");
|
||||
|
||||
let bin_python_minor_12 = context
|
||||
|
|
@ -1754,7 +1754,7 @@ fn python_install_default() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/bin/python3.12"
|
||||
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -1762,7 +1762,7 @@ fn python_install_default() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
read_link(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/bin/python3.12"
|
||||
read_link(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -1770,7 +1770,7 @@ fn python_install_default() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/bin/python3.12"
|
||||
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
});
|
||||
} else {
|
||||
|
|
@ -1778,7 +1778,7 @@ fn python_install_default() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/python"
|
||||
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/python"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -1786,7 +1786,7 @@ fn python_install_default() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
read_link(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/python"
|
||||
read_link(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/python"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -1794,7 +1794,7 @@ fn python_install_default() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/python"
|
||||
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/python"
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -1988,8 +1988,8 @@ fn python_install_default_preview() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.12.11 in [TIME]
|
||||
+ cpython-3.12.11-[PLATFORM] (python, python3, python3.12)
|
||||
Installed Python 3.12.12 in [TIME]
|
||||
+ cpython-3.12.12-[PLATFORM] (python, python3, python3.12)
|
||||
");
|
||||
|
||||
let bin_python_minor_12 = context
|
||||
|
|
@ -2010,7 +2010,7 @@ fn python_install_default_preview() {
|
|||
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
insta::assert_snapshot!(
|
||||
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/bin/python3.12"
|
||||
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -2021,7 +2021,7 @@ fn python_install_default_preview() {
|
|||
read_link(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
insta::assert_snapshot!(
|
||||
canonicalize_link_path(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/bin/python3.12"
|
||||
canonicalize_link_path(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -2032,7 +2032,7 @@ fn python_install_default_preview() {
|
|||
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
insta::assert_snapshot!(
|
||||
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/bin/python3.12"
|
||||
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
});
|
||||
} else {
|
||||
|
|
@ -2043,7 +2043,7 @@ fn python_install_default_preview() {
|
|||
read_link(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12-[PLATFORM]/python"
|
||||
);
|
||||
insta::assert_snapshot!(
|
||||
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/python"
|
||||
canonicalize_link_path(&bin_python_major), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/python"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -2054,7 +2054,7 @@ fn python_install_default_preview() {
|
|||
read_link(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12-[PLATFORM]/python"
|
||||
);
|
||||
insta::assert_snapshot!(
|
||||
canonicalize_link_path(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/python"
|
||||
canonicalize_link_path(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/python"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -2065,7 +2065,7 @@ fn python_install_default_preview() {
|
|||
read_link(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12-[PLATFORM]/python"
|
||||
);
|
||||
insta::assert_snapshot!(
|
||||
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/python"
|
||||
canonicalize_link_path(&bin_python_default), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/python"
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
@ -2109,7 +2109,7 @@ fn python_install_default_preview() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
canonicalize_link_path(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/bin/python3.12"
|
||||
canonicalize_link_path(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/bin/python3.12"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -2141,7 +2141,7 @@ fn python_install_default_preview() {
|
|||
filters => context.filters(),
|
||||
}, {
|
||||
insta::assert_snapshot!(
|
||||
canonicalize_link_path(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.11-[PLATFORM]/python"
|
||||
canonicalize_link_path(&bin_python_minor_12), @"[TEMP_DIR]/managed/cpython-3.12.12-[PLATFORM]/python"
|
||||
);
|
||||
});
|
||||
|
||||
|
|
@ -2270,8 +2270,8 @@ fn python_install_default_from_env() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.12.11 in [TIME]
|
||||
+ cpython-3.12.11-[PLATFORM] (python3.12)
|
||||
Installed Python 3.12.12 in [TIME]
|
||||
+ cpython-3.12.12-[PLATFORM] (python3.12)
|
||||
");
|
||||
|
||||
// But prefer explicit requests
|
||||
|
|
@ -2281,8 +2281,8 @@ fn python_install_default_from_env() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.11.13 in [TIME]
|
||||
+ cpython-3.11.13-[PLATFORM] (python3.11)
|
||||
Installed Python 3.11.14 in [TIME]
|
||||
+ cpython-3.11.14-[PLATFORM] (python3.11)
|
||||
");
|
||||
|
||||
// We should ignore `UV_PYTHON` here and complain there is not a target
|
||||
|
|
@ -2309,8 +2309,8 @@ fn python_install_default_from_env() {
|
|||
----- stderr -----
|
||||
Searching for Python installations
|
||||
Uninstalled 2 versions in [TIME]
|
||||
- cpython-3.11.13-[PLATFORM] (python3.11)
|
||||
- cpython-3.12.11-[PLATFORM] (python3.12)
|
||||
- cpython-3.11.14-[PLATFORM] (python3.11)
|
||||
- cpython-3.12.12-[PLATFORM] (python3.12)
|
||||
");
|
||||
|
||||
// Uninstall with no targets should error
|
||||
|
|
@ -2581,7 +2581,7 @@ fn python_install_cached() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
error: Failed to install cpython-3.12.11-[PLATFORM]
|
||||
error: Failed to install cpython-3.12.12-[PLATFORM]
|
||||
Caused by: An offline Python installation was requested, but cpython-3.12.[PATCH]-[DATE]-[PLATFORM].tar.gz) is missing in python-cache
|
||||
");
|
||||
}
|
||||
|
|
@ -2691,7 +2691,7 @@ fn python_install_no_cache() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
error: Failed to install cpython-3.12.11-[PLATFORM]
|
||||
error: Failed to install cpython-3.12.12-[PLATFORM]
|
||||
Caused by: Failed to download https://github.com/astral-sh/python-build-standalone/releases/download/[DATE]/cpython-3.12.[PATCH]-[DATE]-[PLATFORM].tar.gz
|
||||
Caused by: Network connectivity is disabled, but the requested data wasn't found in the cache for: `https://github.com/astral-sh/python-build-standalone/releases/download/[DATE]/cpython-3.12.[PATCH]-[DATE]-[PLATFORM].tar.gz`
|
||||
");
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@ fn python_list_downloads() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
cpython-3.10.18-[PLATFORM] <download available>
|
||||
cpython-3.10.19-[PLATFORM] <download available>
|
||||
pypy-3.10.16-[PLATFORM] <download available>
|
||||
graalpy-3.10.0-[PLATFORM] <download available>
|
||||
|
||||
|
|
@ -377,6 +377,7 @@ fn python_list_downloads() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
cpython-3.10.19-[PLATFORM] <download available>
|
||||
cpython-3.10.18-[PLATFORM] <download available>
|
||||
cpython-3.10.17-[PLATFORM] <download available>
|
||||
cpython-3.10.16-[PLATFORM] <download available>
|
||||
|
|
@ -423,7 +424,7 @@ fn python_list_downloads_installed() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
cpython-3.10.18-[PLATFORM] <download available>
|
||||
cpython-3.10.19-[PLATFORM] <download available>
|
||||
pypy-3.10.16-[PLATFORM] <download available>
|
||||
graalpy-3.10.0-[PLATFORM] <download available>
|
||||
|
||||
|
|
@ -450,7 +451,7 @@ fn python_list_downloads_installed() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
cpython-3.10.18-[PLATFORM] managed/cpython-3.10.18-[PLATFORM]/[INSTALL-BIN]/[PYTHON]
|
||||
cpython-3.10.19-[PLATFORM] managed/cpython-3.10.19-[PLATFORM]/[INSTALL-BIN]/[PYTHON]
|
||||
pypy-3.10.16-[PLATFORM] <download available>
|
||||
graalpy-3.10.0-[PLATFORM] <download available>
|
||||
|
||||
|
|
@ -462,7 +463,7 @@ fn python_list_downloads_installed() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
cpython-3.10.18-[PLATFORM] <download available>
|
||||
cpython-3.10.19-[PLATFORM] <download available>
|
||||
pypy-3.10.16-[PLATFORM] <download available>
|
||||
graalpy-3.10.0-[PLATFORM] <download available>
|
||||
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ fn python_upgrade() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.10.18 in [TIME]
|
||||
+ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||
Installed Python 3.10.19 in [TIME]
|
||||
+ cpython-3.10.19-[PLATFORM] (python3.10)
|
||||
");
|
||||
|
||||
// Should be a no-op when already upgraded
|
||||
|
|
@ -61,8 +61,8 @@ fn python_upgrade() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.10.18 in [TIME]
|
||||
~ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||
Installed Python 3.10.19 in [TIME]
|
||||
~ cpython-3.10.19-[PLATFORM] (python3.10)
|
||||
");
|
||||
|
||||
// Install an earlier pre-release version
|
||||
|
|
@ -142,8 +142,8 @@ fn python_upgrade_without_version() {
|
|||
|
||||
----- stderr -----
|
||||
Installed 2 versions in [TIME]
|
||||
+ cpython-3.11.13-[PLATFORM] (python3.11)
|
||||
+ cpython-3.12.11-[PLATFORM] (python3.12)
|
||||
+ cpython-3.11.14-[PLATFORM] (python3.11)
|
||||
+ cpython-3.12.12-[PLATFORM] (python3.12)
|
||||
");
|
||||
|
||||
// Should be a no-op when every version is already upgraded
|
||||
|
|
@ -229,8 +229,8 @@ fn python_upgrade_transparent_from_venv() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.10.18 in [TIME]
|
||||
+ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||
Installed Python 3.10.19 in [TIME]
|
||||
+ cpython-3.10.19-[PLATFORM] (python3.10)
|
||||
");
|
||||
|
||||
// First virtual environment should reflect upgraded patch
|
||||
|
|
@ -238,7 +238,7 @@ fn python_upgrade_transparent_from_venv() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Python 3.10.18
|
||||
Python 3.10.19
|
||||
|
||||
----- stderr -----
|
||||
"
|
||||
|
|
@ -250,7 +250,7 @@ fn python_upgrade_transparent_from_venv() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Python 3.10.18
|
||||
Python 3.10.19
|
||||
|
||||
----- stderr -----
|
||||
"
|
||||
|
|
@ -306,8 +306,8 @@ fn python_upgrade_transparent_from_venv_preview() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.10.18 in [TIME]
|
||||
+ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||
Installed Python 3.10.19 in [TIME]
|
||||
+ cpython-3.10.19-[PLATFORM] (python3.10)
|
||||
");
|
||||
|
||||
// Virtual environment should reflect upgraded patch
|
||||
|
|
@ -315,7 +315,7 @@ fn python_upgrade_transparent_from_venv_preview() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Python 3.10.18
|
||||
Python 3.10.19
|
||||
|
||||
----- stderr -----
|
||||
"
|
||||
|
|
@ -369,8 +369,8 @@ fn python_upgrade_ignored_with_python_pin() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.10.18 in [TIME]
|
||||
+ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||
Installed Python 3.10.19 in [TIME]
|
||||
+ cpython-3.10.19-[PLATFORM] (python3.10)
|
||||
");
|
||||
|
||||
// Virtual environment should continue to respect pinned patch version
|
||||
|
|
@ -434,8 +434,8 @@ fn python_no_transparent_upgrade_with_venv_patch_specification() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.10.18 in [TIME]
|
||||
+ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||
Installed Python 3.10.19 in [TIME]
|
||||
+ cpython-3.10.19-[PLATFORM] (python3.10)
|
||||
");
|
||||
|
||||
// The virtual environment Python version is transparently upgraded.
|
||||
|
|
@ -525,8 +525,8 @@ fn python_transparent_upgrade_venv_venv() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.10.18 in [TIME]
|
||||
+ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||
Installed Python 3.10.19 in [TIME]
|
||||
+ cpython-3.10.19-[PLATFORM] (python3.10)
|
||||
");
|
||||
|
||||
// Should have transparently upgraded in second virtual environment
|
||||
|
|
@ -536,7 +536,7 @@ fn python_transparent_upgrade_venv_venv() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Python 3.10.18
|
||||
Python 3.10.19
|
||||
|
||||
----- stderr -----
|
||||
"
|
||||
|
|
@ -593,8 +593,8 @@ fn python_upgrade_transparent_from_venv_module() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.12.11 in [TIME]
|
||||
+ cpython-3.12.11-[PLATFORM] (python3.12)
|
||||
Installed Python 3.12.12 in [TIME]
|
||||
+ cpython-3.12.12-[PLATFORM] (python3.12)
|
||||
"
|
||||
);
|
||||
|
||||
|
|
@ -603,7 +603,7 @@ fn python_upgrade_transparent_from_venv_module() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Python 3.12.11
|
||||
Python 3.12.12
|
||||
|
||||
----- stderr -----
|
||||
"
|
||||
|
|
@ -678,8 +678,8 @@ fn python_upgrade_transparent_from_venv_module_in_venv() {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.10.18 in [TIME]
|
||||
+ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||
Installed Python 3.10.19 in [TIME]
|
||||
+ cpython-3.10.19-[PLATFORM] (python3.10)
|
||||
"
|
||||
);
|
||||
|
||||
|
|
@ -690,7 +690,7 @@ fn python_upgrade_transparent_from_venv_module_in_venv() {
|
|||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
Python 3.10.18
|
||||
Python 3.10.19
|
||||
|
||||
----- stderr -----
|
||||
"
|
||||
|
|
@ -720,8 +720,8 @@ fn python_upgrade_force_install() -> Result<()> {
|
|||
|
||||
----- stderr -----
|
||||
warning: Executable already exists at `[BIN]/python3.12` but is not managed by uv; use `uv python install 3.12 --force` to replace it
|
||||
Installed Python 3.12.11 in [TIME]
|
||||
+ cpython-3.12.11-[PLATFORM]
|
||||
Installed Python 3.12.12 in [TIME]
|
||||
+ cpython-3.12.12-[PLATFORM]
|
||||
");
|
||||
|
||||
// Force the `bin` install.
|
||||
|
|
@ -731,8 +731,8 @@ fn python_upgrade_force_install() -> Result<()> {
|
|||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
Installed Python 3.12.11 in [TIME]
|
||||
+ cpython-3.12.11-[PLATFORM] (python3.12)
|
||||
Installed Python 3.12.12 in [TIME]
|
||||
+ cpython-3.12.12-[PLATFORM] (python3.12)
|
||||
");
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue