mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Add a universal resolution mode to pip compile
(#4505)
## Summary This needs more tests and a few more changes, but checkpointing it for now.
This commit is contained in:
parent
f2f48d339e
commit
e1708689a9
10 changed files with 186 additions and 27 deletions
|
@ -48,7 +48,6 @@ use crate::pubgrub::{
|
|||
PubGrubPriorities, PubGrubPython, PubGrubSpecifier,
|
||||
};
|
||||
use crate::python_requirement::PythonRequirement;
|
||||
use crate::requires_python::RequiresPython;
|
||||
use crate::resolution::ResolutionGraph;
|
||||
pub(crate) use crate::resolver::availability::{
|
||||
IncompletePackage, ResolverVersion, UnavailablePackage, UnavailableReason, UnavailableVersion,
|
||||
|
@ -193,12 +192,7 @@ impl<Provider: ResolverProvider, InstalledPackages: InstalledPackagesProvider>
|
|||
let requires_python = if markers.is_some() {
|
||||
None
|
||||
} else {
|
||||
Some(
|
||||
python_requirement
|
||||
.requires_python()
|
||||
.map(RequiresPython::to_marker_tree)
|
||||
.unwrap_or_else(|| MarkerTree::And(vec![])),
|
||||
)
|
||||
Some(python_requirement.to_marker_tree())
|
||||
};
|
||||
let state = ResolverState {
|
||||
index: index.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue