Prefer stable releases over pre-releases in uv python install (#12194)
e.g., `uv python install 3` should not install the 3.14 alpha Closes #12184
This commit is contained in:
@@ -2294,9 +2294,9 @@ impl VersionRequest {
|
||||
match self {
|
||||
Self::Default => false,
|
||||
Self::Any => true,
|
||||
Self::Major(..) => true,
|
||||
Self::MajorMinor(..) => true,
|
||||
Self::MajorMinorPatch(..) => true,
|
||||
Self::Major(..) => false,
|
||||
Self::MajorMinor(..) => false,
|
||||
Self::MajorMinorPatch(..) => false,
|
||||
Self::MajorMinorPrerelease(..) => true,
|
||||
Self::Range(specifiers, _) => specifiers.iter().any(VersionSpecifier::any_prerelease),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user