mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Track supported Python range in lockfile (#4065)
## Summary This PR adds the `Requires-Python` range to the user's lockfile. This will enable us to validate it when installing. For now, we repeat the `Requires-Python` back to the user; alternatively, though, we could detect the supported Python range automatically. See: https://github.com/astral-sh/uv/issues/4052
This commit is contained in:
parent
8596525d97
commit
642cef0dad
6 changed files with 58 additions and 9 deletions
|
@ -557,7 +557,13 @@ impl<InstalledPackages: InstalledPackagesProvider> ResolverState<InstalledPackag
|
|||
for resolution in resolutions {
|
||||
combined.union(resolution);
|
||||
}
|
||||
ResolutionGraph::from_state(&self.index, &self.preferences, &self.git, combined)
|
||||
ResolutionGraph::from_state(
|
||||
&self.index,
|
||||
&self.preferences,
|
||||
&self.git,
|
||||
&self.python_requirement,
|
||||
combined,
|
||||
)
|
||||
}
|
||||
|
||||
/// Visit a [`PubGrubPackage`] prior to selection. This should be called on a [`PubGrubPackage`]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue