mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-24 05:35:04 +00:00
Ignore pre-release segments when discovering via requires-python
(#6813)
## Summary `3.13.0b0` should be allowed by `>=3.13`. Closes #6798.
This commit is contained in:
parent
e3d5d3d26d
commit
f046e54c64
1 changed files with 4 additions and 1 deletions
|
@ -1441,7 +1441,10 @@ impl VersionRequest {
|
|||
interpreter.python_patch(),
|
||||
) == (*major, *minor, *patch)
|
||||
}
|
||||
Self::Range(specifiers) => specifiers.contains(interpreter.python_version()),
|
||||
Self::Range(specifiers) => {
|
||||
let version = interpreter.python_version().only_release();
|
||||
specifiers.contains(&version)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue