Bump patch Python versions for project (#7972)

This commit is contained in:
Zanie Blue 2024-10-07 12:38:12 -05:00 committed by GitHub
parent ceafa476c7
commit a4f64d2be6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 15 deletions

View file

@ -1,6 +1,6 @@
3.12.1 3.12.6
3.11.7 3.11.10
3.10.13 3.10.15
3.9.18 3.9.20
3.8.18 3.8.18
3.8.12 3.8.12

View file

@ -10005,7 +10005,7 @@ fn dynamic_dependencies() -> Result<()> {
#[cfg(all(target_os = "linux", feature = "python-patch"))] #[cfg(all(target_os = "linux", feature = "python-patch"))]
#[test] #[test]
fn emit_marker_expression_exciting_linux() -> Result<()> { 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"); let requirements_in = context.temp_dir.child("requirements.in");
requirements_in.write_str("anyio")?; 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: # This file was autogenerated by uv via the following command:
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression
# Pinned dependencies known to be valid for: # 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 anyio==4.3.0
# via -r requirements.in # via -r requirements.in
idna==3.6 idna==3.6
@ -10042,7 +10042,7 @@ fn emit_marker_expression_exciting_linux() -> Result<()> {
#[cfg(all(target_os = "linux", feature = "python-patch"))] #[cfg(all(target_os = "linux", feature = "python-patch"))]
#[test] #[test]
fn emit_marker_expression_direct() -> Result<()> { 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"); let requirements_in = context.temp_dir.child("requirements.in");
requirements_in.write_str("anyio ; sys_platform == 'linux'")?; 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: # This file was autogenerated by uv via the following command:
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression
# Pinned dependencies known to be valid for: # 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 anyio==4.3.0
# via -r requirements.in # via -r requirements.in
idna==3.6 idna==3.6
@ -10122,7 +10122,7 @@ fn emit_marker_expression_conditional() -> Result<()> {
#[cfg(all(target_os = "linux", feature = "python-patch"))] #[cfg(all(target_os = "linux", feature = "python-patch"))]
#[test] #[test]
fn emit_marker_expression_pypy() -> Result<()> { 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"); let requirements_in = context.temp_dir.child("requirements.in");
requirements_in.write_str("pendulum")?; 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: # This file was autogenerated by uv via the following command:
# uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression # uv pip compile --cache-dir [CACHE_DIR] requirements.in --emit-marker-expression
# Pinned dependencies known to be valid for: # 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 pendulum==3.0.0
# via -r requirements.in # via -r requirements.in
python-dateutil==2.9.0.post0 python-dateutil==2.9.0.post0

View file

@ -666,18 +666,18 @@ fn create_venv_unknown_python_patch() {
#[cfg(feature = "python-patch")] #[cfg(feature = "python-patch")]
#[test] #[test]
fn create_venv_python_patch() { 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() uv_snapshot!(context.filters(), context.venv()
.arg(context.venv.as_os_str()) .arg(context.venv.as_os_str())
.arg("--python") .arg("--python")
.arg("3.12.1"), @r###" .arg("3.12.6"), @r###"
success: true success: true
exit_code: 0 exit_code: 0
----- stdout ----- ----- stdout -----
----- stderr ----- ----- 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 Creating virtual environment at: .venv
Activate with: source .venv/[BIN]/activate Activate with: source .venv/[BIN]/activate
"### "###

View file

@ -246,13 +246,13 @@ print(".".join(map(str, sys.version_info[:3])))
```console ```console
$ # Use the default Python version, may differ on your machine $ # Use the default Python version, may differ on your machine
$ uv run example.py $ uv run example.py
3.12.1 3.12.6
``` ```
```console ```console
$ # Use a specific Python version $ # Use a specific Python version
$ uv run --python 3.10 example.py $ 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 See the [Python version request](../concepts/python-versions.md#requesting-a-version) documentation