Error when workspace contains conflicting Python requirements (#10841)

## Summary

If members define disjoint Python requirements, we should error. Right
now, it seems that it maps to unbounded and leads to weird behavior.

Closes https://github.com/astral-sh/uv/issues/10835.
This commit is contained in:
Charlie Marsh
2025-01-22 12:22:52 -05:00
committed by GitHub
parent 1372c4e6de
commit 434706389b
9 changed files with 113 additions and 19 deletions
@@ -75,6 +75,11 @@ impl RequiresPython {
}
})?;
// If the intersection is empty, return `None`.
if range.is_empty() {
return None;
}
// Convert back to PEP 440 specifiers.
let specifiers = VersionSpecifiers::from_release_only_bounds(range.iter());