Add uv sync --no-install-package to skip installation of specific packages (#6540)

Extends #6538 / #6539
See #4028

Allows excluding arbitrary packages from the sync.
This commit is contained in:
Zanie Blue
2024-08-23 15:48:04 -05:00
committed by GitHub
parent ca50243174
commit d1cbcb30e3
10 changed files with 109 additions and 7 deletions
+8
View File
@@ -2292,6 +2292,14 @@ pub struct SyncArgs {
#[arg(long)]
pub no_install_workspace: bool,
/// Do not install the given package(s).
///
/// By default, all of the project's dependencies are installed into the environment. The
/// `--no-install-package` option allows exclusion of specific packages. Note this can result
/// in a broken environment, and should be used with caution.
#[arg(long)]
pub no_install_package: Vec<PackageName>,
/// Assert that the `uv.lock` will remain unchanged.
///
/// Requires that the lockfile is up-to-date. If the lockfile is missing or