From 29ea5d5d9a65b3d8be89dc9d021a165ee45e8d63 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 3 Jun 2024 11:34:12 -0400 Subject: [PATCH] Fix reference to `--python-version` patch behavior (#3989) ## Summary We changed this at some point but didn't update the documentation. --- crates/uv/src/cli.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/uv/src/cli.rs b/crates/uv/src/cli.rs index c5260d165..ba857bc73 100644 --- a/crates/uv/src/cli.rs +++ b/crates/uv/src/cli.rs @@ -526,8 +526,8 @@ pub(crate) struct PipCompileArgs { /// The minimum Python version that should be supported by the compiled requirements (e.g., /// `3.7` or `3.7.9`). /// - /// If a patch version is omitted, the most recent known patch version for that minor version - /// is assumed. For example, `3.7` is mapped to `3.7.17`. + /// If a patch version is omitted, the minimum patch version is assumed. For example, `3.7` is + /// mapped to `3.7.0`. #[arg(long, short)] pub(crate) python_version: Option, @@ -829,8 +829,8 @@ pub(crate) struct PipSyncArgs { /// The minimum Python version that should be supported by the requirements (e.g., /// `3.7` or `3.7.9`). /// - /// If a patch version is omitted, the most recent known patch version for that minor version - /// is assumed. For example, `3.7` is mapped to `3.7.17`. + /// If a patch version is omitted, the minimum patch version is assumed. For example, `3.7` is + /// mapped to `3.7.0`. #[arg(long)] pub(crate) python_version: Option, @@ -1185,8 +1185,8 @@ pub(crate) struct PipInstallArgs { /// The minimum Python version that should be supported by the requirements (e.g., /// `3.7` or `3.7.9`). /// - /// If a patch version is omitted, the most recent known patch version for that minor version - /// is assumed. For example, `3.7` is mapped to `3.7.17`. + /// If a patch version is omitted, the minimum patch version is assumed. For example, `3.7` is + /// mapped to `3.7.0`. #[arg(long)] pub(crate) python_version: Option,