mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Remove PubGrub dependency from uv
(#4116)
## Summary Encapsulates more of the details are `Requires-Python` and PubGrub. Closes https://github.com/astral-sh/uv/issues/4110.
This commit is contained in:
parent
52bdee2e85
commit
cc7c780523
14 changed files with 209 additions and 135 deletions
|
@ -730,7 +730,7 @@ impl<InstalledPackages: InstalledPackagesProvider> ResolverState<InstalledPackag
|
|||
// The version is incompatible due to its Python requirement.
|
||||
if let Some(requires_python) = metadata.requires_python.as_ref() {
|
||||
if let Some(target) = self.python_requirement.target() {
|
||||
if !target.contains(requires_python) {
|
||||
if !target.is_compatible_with(requires_python) {
|
||||
return Ok(Some(ResolverVersion::Unavailable(
|
||||
version.clone(),
|
||||
UnavailableVersion::IncompatibleDist(IncompatibleDist::Source(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue