mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-22 04:27:18 +00:00
Validate dependency groups even when --frozen is present (#11499)
## Summary We now use the same strategy as for extras, validating against the lockfile instead of the `pyproject.toml`. Closes https://github.com/astral-sh/uv/issues/10882.
This commit is contained in:
parent
71bda82b08
commit
f001605505
10 changed files with 168 additions and 161 deletions
|
|
@ -2622,6 +2622,11 @@ impl Package {
|
|||
pub fn provides_extras(&self) -> Option<&Vec<ExtraName>> {
|
||||
self.metadata.provides_extras.as_ref()
|
||||
}
|
||||
|
||||
/// Returns the dependency groups the package provides, if any.
|
||||
pub fn dependency_groups(&self) -> &BTreeMap<GroupName, BTreeSet<Requirement>> {
|
||||
&self.metadata.dependency_groups
|
||||
}
|
||||
}
|
||||
|
||||
/// Attempts to construct a `VerbatimUrl` from the given normalized `Path`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue