Add --with-editable support to uv run (#6262)

Closes https://github.com/astral-sh/uv/issues/6254
This commit is contained in:
Zanie Blue 2024-08-20 14:04:46 -05:00 committed by GitHub
parent c3c05c4602
commit f10ccc488e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 166 additions and 2 deletions

View file

@ -2140,6 +2140,14 @@ pub struct RunArgs {
#[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 project environment in a separate, ephemeral environment. These
/// dependencies are allowed to conflict with those specified by the project.
#[arg(long)]
pub with_editable: Vec<String>,
/// Run with all packages listed in the given `requirements.txt` files.
///
/// The same environment semantics as `--with` apply.