mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-28 18:54:10 +00:00
Add support for requirements files in uv run (#4973)
Closes https://github.com/astral-sh/uv/issues/4824. --------- Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
This commit is contained in:
parent
49ea4a7a91
commit
5f1f9c8293
10 changed files with 258 additions and 39 deletions
|
|
@ -336,4 +336,9 @@ impl RequirementsSpecification {
|
|||
..Self::default()
|
||||
}
|
||||
}
|
||||
|
||||
/// Return true if the specification does not include any requirements to install.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.requirements.is_empty() && self.source_trees.is_empty() && self.overrides.is_empty()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue