Bump pinned Python versions (#12515)

Moves us to the latest patch for our test Python versions.
This commit is contained in:
Zanie Blue 2025-03-27 15:16:10 -05:00 committed by GitHub
parent 7cb85fa08f
commit 6a13e4cedd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 27 additions and 23 deletions

View File

@ -1,7 +1,11 @@
3.13.0
3.12.6
3.11.10
3.10.15
3.9.20
3.13.2
3.12.9
3.11.11
3.10.16
3.9.21
3.8.20
# The following are required for packse scenarios
3.8.18
3.8.12
# The following is needed for `==3.13` request tests
3.13.0

View File

@ -4469,7 +4469,7 @@ fn lock_requires_python_exact() -> Result<()> {
"#,
)?;
uv_snapshot!(context.filters(), context.lock(), @r###"
uv_snapshot!(context.filters(), context.lock(), @r"
success: true
exit_code: 0
----- stdout -----
@ -4477,7 +4477,7 @@ fn lock_requires_python_exact() -> Result<()> {
----- stderr -----
warning: The workspace `requires-python` value (`==3.13`) contains an exact match without a patch version. When omitted, the patch version is implicitly `0` (e.g., `==3.13.0`). Did you mean `==3.13.*`?
Resolved 2 packages in [TIME]
"###);
");
let lock = fs_err::read_to_string(&lockfile).unwrap();

View File

@ -11702,7 +11702,7 @@ fn dynamic_dependencies() -> Result<()> {
#[cfg(feature = "python-patch")]
#[test]
fn emit_marker_expression_exciting_linux() -> Result<()> {
let context = TestContext::new("3.12.6");
let context = TestContext::new("3.12.9");
let requirements_in = context.temp_dir.child("requirements.in");
requirements_in.write_str("anyio")?;
@ -11711,14 +11711,14 @@ fn emit_marker_expression_exciting_linux() -> Result<()> {
.arg("requirements.in")
.arg("--python-platform")
.arg("linux")
.arg("--emit-marker-expression"), @r###"
.arg("--emit-marker-expression"), @r"
success: true
exit_code: 0
----- stdout -----
# This file was autogenerated by uv via the following command:
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-platform linux --emit-marker-expression
# Pinned dependencies known to be valid for:
# python_full_version == '3.12.6' and platform_python_implementation == 'CPython' and sys_platform == 'linux'
# python_full_version == '3.12.9' and platform_python_implementation == 'CPython' and sys_platform == 'linux'
anyio==4.3.0
# via -r requirements.in
idna==3.6
@ -11728,7 +11728,7 @@ fn emit_marker_expression_exciting_linux() -> Result<()> {
----- stderr -----
Resolved 3 packages in [TIME]
"###);
");
Ok(())
}
@ -11738,7 +11738,7 @@ fn emit_marker_expression_exciting_linux() -> Result<()> {
#[cfg(feature = "python-patch")]
#[test]
fn emit_marker_expression_direct() -> Result<()> {
let context = TestContext::new("3.12.6");
let context = TestContext::new("3.12.9");
let requirements_in = context.temp_dir.child("requirements.in");
requirements_in.write_str("anyio ; sys_platform == 'linux'")?;
@ -11747,14 +11747,14 @@ fn emit_marker_expression_direct() -> Result<()> {
.arg("requirements.in")
.arg("--python-platform")
.arg("linux")
.arg("--emit-marker-expression"), @r###"
.arg("--emit-marker-expression"), @r"
success: true
exit_code: 0
----- stdout -----
# This file was autogenerated by uv via the following command:
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-platform linux --emit-marker-expression
# Pinned dependencies known to be valid for:
# python_full_version == '3.12.6' and platform_python_implementation == 'CPython' and sys_platform == 'linux'
# python_full_version == '3.12.9' and platform_python_implementation == 'CPython' and sys_platform == 'linux'
anyio==4.3.0
# via -r requirements.in
idna==3.6
@ -11764,7 +11764,7 @@ fn emit_marker_expression_direct() -> Result<()> {
----- stderr -----
Resolved 3 packages in [TIME]
"###);
");
Ok(())
}
@ -11808,7 +11808,7 @@ fn emit_marker_expression_conditional() -> Result<()> {
#[cfg(feature = "python-patch")]
#[test]
fn emit_marker_expression_pypy() -> Result<()> {
let context = TestContext::new("3.12.6");
let context = TestContext::new("3.12.9");
let requirements_in = context.temp_dir.child("requirements.in");
requirements_in.write_str("pendulum")?;
@ -11817,14 +11817,14 @@ fn emit_marker_expression_pypy() -> Result<()> {
.arg("requirements.in")
.arg("--python-platform")
.arg("linux")
.arg("--emit-marker-expression"), @r###"
.arg("--emit-marker-expression"), @r"
success: true
exit_code: 0
----- stdout -----
# This file was autogenerated by uv via the following command:
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --python-platform linux --emit-marker-expression
# Pinned dependencies known to be valid for:
# python_full_version == '3.12.6' and implementation_name == 'cpython'
# python_full_version == '3.12.9' and implementation_name == 'cpython'
pendulum==3.0.0
# via -r requirements.in
python-dateutil==2.9.0.post0
@ -11840,7 +11840,7 @@ fn emit_marker_expression_pypy() -> Result<()> {
----- stderr -----
Resolved 5 packages in [TIME]
"###);
");
Ok(())
}

View File

@ -705,21 +705,21 @@ fn create_venv_unknown_python_patch() {
#[cfg(feature = "python-patch")]
#[test]
fn create_venv_python_patch() {
let context = TestContext::new_with_versions(&["3.12.6"]);
let context = TestContext::new_with_versions(&["3.12.9"]);
uv_snapshot!(context.filters(), context.venv()
.arg(context.venv.as_os_str())
.arg("--python")
.arg("3.12.6"), @r###"
.arg("3.12.9"), @r"
success: true
exit_code: 0
----- stdout -----
----- stderr -----
Using CPython 3.12.6 interpreter at: [PYTHON-3.12.6]
Using CPython 3.12.9 interpreter at: [PYTHON-3.12.9]
Creating virtual environment at: .venv
Activate with: source .venv/[BIN]/activate
"###
"
);
context.venv.assert(predicates::path::is_dir());