mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-25 13:36:41 +00:00
Respect Requires-Python in universal resolution (#3998)
## Summary Closes #3982.
This commit is contained in:
parent
63c84ed4a6
commit
6afb659c9a
13 changed files with 419 additions and 17 deletions
|
|
@ -467,7 +467,7 @@ impl VersionMapLazy {
|
|||
// _installed_ Python version (to build successfully)
|
||||
if let Some(requires_python) = requires_python {
|
||||
if let Some(target) = self.python_requirement.target() {
|
||||
if !requires_python.contains(target) {
|
||||
if !target.subset_of(&requires_python) {
|
||||
return SourceDistCompatibility::Incompatible(
|
||||
IncompatibleSource::RequiresPython(
|
||||
requires_python,
|
||||
|
|
@ -531,10 +531,10 @@ impl VersionMapLazy {
|
|||
}
|
||||
}
|
||||
|
||||
// Check for a Python version incompatibility`
|
||||
// Check for a Python version incompatibility
|
||||
if let Some(requires_python) = requires_python {
|
||||
if let Some(target) = self.python_requirement.target() {
|
||||
if !requires_python.contains(target) {
|
||||
if !target.subset_of(&requires_python) {
|
||||
return WheelCompatibility::Incompatible(IncompatibleWheel::RequiresPython(
|
||||
requires_python,
|
||||
PythonRequirementKind::Target,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue