Add support for --with-editable to uv tool (#6744)

<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary
<!-- What's the purpose of the change? What does it do, and why? -->
close #6272 

## Test Plan
<!-- How was it tested? -->
As in https://github.com/astral-sh/uv/pull/6262

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
kyoto7250
2024-09-18 05:51:34 +09:00
committed by GitHub
parent 6c52f36655
commit e5dd67f58e
9 changed files with 171 additions and 8 deletions
+8
View File
@@ -3204,6 +3204,14 @@ pub struct ToolRunArgs {
#[arg(long)]
pub with: Vec<String>,
/// Run with the given packages installed as editables
///
/// When used in a project, these dependencies will be layered on top of
/// the uv tool's environment in a separate, ephemeral environment. These
/// dependencies are allowed to conflict with those specified.
#[arg(long)]
pub with_editable: 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>>,