Support requirements.txt files in uv tool install and uv tool run (#5362)
## Summary Closes https://github.com/astral-sh/uv/issues/5347. Closes https://github.com/astral-sh/uv/issues/5348.
This commit is contained in:
@@ -2208,10 +2208,14 @@ pub struct ToolRunArgs {
|
||||
#[arg(long)]
|
||||
pub from: Option<String>,
|
||||
|
||||
/// Include the following extra requirements.
|
||||
/// Run with the given packages installed.
|
||||
#[arg(long)]
|
||||
pub with: Vec<String>,
|
||||
|
||||
/// Run with all packages listed in the given `requirements.txt` files.
|
||||
#[arg(long, value_parser = parse_maybe_file_path)]
|
||||
pub with_requirements: Vec<Maybe<PathBuf>>,
|
||||
|
||||
#[command(flatten)]
|
||||
pub installer: ResolverInstallerArgs,
|
||||
|
||||
@@ -2252,6 +2256,10 @@ pub struct ToolInstallArgs {
|
||||
#[arg(long)]
|
||||
pub with: Vec<String>,
|
||||
|
||||
/// Run all requirements listed in the given `requirements.txt` files.
|
||||
#[arg(long, value_parser = parse_maybe_file_path)]
|
||||
pub with_requirements: Vec<Maybe<PathBuf>>,
|
||||
|
||||
#[command(flatten)]
|
||||
pub installer: ResolverInstallerArgs,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user