From a4f64d2be6fc9a691ccacad66a78299a37c7dbbf Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 7 Oct 2024 12:38:12 -0500 Subject: [PATCH] Bump patch Python versions for project (#7972) --- .python-versions | 8 ++++---- crates/uv/tests/pip_compile.rs | 12 ++++++------ crates/uv/tests/venv.rs | 6 +++--- docs/guides/scripts.md | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.python-versions b/.python-versions index fde50855c..c78335fbd 100644 --- a/.python-versions +++ b/.python-versions @@ -1,6 +1,6 @@ -3.12.1 -3.11.7 -3.10.13 -3.9.18 +3.12.6 +3.11.10 +3.10.15 +3.9.20 3.8.18 3.8.12 diff --git a/crates/uv/tests/pip_compile.rs b/crates/uv/tests/pip_compile.rs index c8bc765b8..109dcc651 100644 --- a/crates/uv/tests/pip_compile.rs +++ b/crates/uv/tests/pip_compile.rs @@ -10005,7 +10005,7 @@ fn dynamic_dependencies() -> Result<()> { #[cfg(all(target_os = "linux", feature = "python-patch"))] #[test] fn emit_marker_expression_exciting_linux() -> Result<()> { - let context = TestContext::new("3.12.1"); + let context = TestContext::new("3.12.6"); let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("anyio")?; @@ -10019,7 +10019,7 @@ fn emit_marker_expression_exciting_linux() -> Result<()> { # This file was autogenerated by uv via the following command: # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # Pinned dependencies known to be valid for: - # python_full_version == '3.12.1' and platform_python_implementation == 'CPython' and platform_system == 'Linux' + # python_full_version == '3.12.6' and platform_python_implementation == 'CPython' and platform_system == 'Linux' anyio==4.3.0 # via -r requirements.in idna==3.6 @@ -10042,7 +10042,7 @@ fn emit_marker_expression_exciting_linux() -> Result<()> { #[cfg(all(target_os = "linux", feature = "python-patch"))] #[test] fn emit_marker_expression_direct() -> Result<()> { - let context = TestContext::new("3.12.1"); + let context = TestContext::new("3.12.6"); let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("anyio ; sys_platform == 'linux'")?; @@ -10056,7 +10056,7 @@ fn emit_marker_expression_direct() -> Result<()> { # This file was autogenerated by uv via the following command: # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # Pinned dependencies known to be valid for: - # python_full_version == '3.12.1' and platform_python_implementation == 'CPython' and platform_system == 'Linux' and sys_platform == 'linux' + # python_full_version == '3.12.6' and platform_python_implementation == 'CPython' and platform_system == 'Linux' and sys_platform == 'linux' anyio==4.3.0 # via -r requirements.in idna==3.6 @@ -10122,7 +10122,7 @@ fn emit_marker_expression_conditional() -> Result<()> { #[cfg(all(target_os = "linux", feature = "python-patch"))] #[test] fn emit_marker_expression_pypy() -> Result<()> { - let context = TestContext::new("3.12.1"); + let context = TestContext::new("3.12.6"); let requirements_in = context.temp_dir.child("requirements.in"); requirements_in.write_str("pendulum")?; @@ -10136,7 +10136,7 @@ fn emit_marker_expression_pypy() -> Result<()> { # This file was autogenerated by uv via the following command: # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # Pinned dependencies known to be valid for: - # python_full_version == '3.12.1' and implementation_name == 'cpython' + # python_full_version == '3.12.6' and implementation_name == 'cpython' pendulum==3.0.0 # via -r requirements.in python-dateutil==2.9.0.post0 diff --git a/crates/uv/tests/venv.rs b/crates/uv/tests/venv.rs index 164a5bdd8..53afcee72 100644 --- a/crates/uv/tests/venv.rs +++ b/crates/uv/tests/venv.rs @@ -666,18 +666,18 @@ fn create_venv_unknown_python_patch() { #[cfg(feature = "python-patch")] #[test] fn create_venv_python_patch() { - let context = TestContext::new_with_versions(&["3.12.1"]); + let context = TestContext::new_with_versions(&["3.12.6"]); uv_snapshot!(context.filters(), context.venv() .arg(context.venv.as_os_str()) .arg("--python") - .arg("3.12.1"), @r###" + .arg("3.12.6"), @r###" success: true exit_code: 0 ----- stdout ----- ----- stderr ----- - Using CPython 3.12.1 interpreter at: [PYTHON-3.12.1] + Using CPython 3.12.6 interpreter at: [PYTHON-3.12.6] Creating virtual environment at: .venv Activate with: source .venv/[BIN]/activate "### diff --git a/docs/guides/scripts.md b/docs/guides/scripts.md index cf25eaacf..50875008d 100644 --- a/docs/guides/scripts.md +++ b/docs/guides/scripts.md @@ -246,13 +246,13 @@ print(".".join(map(str, sys.version_info[:3]))) ```console $ # Use the default Python version, may differ on your machine $ uv run example.py -3.12.1 +3.12.6 ``` ```console $ # Use a specific Python version $ uv run --python 3.10 example.py -3.10.13 +3.10.15 ``` See the [Python version request](../concepts/python-versions.md#requesting-a-version) documentation