Add uv sync --no-install-workspace to skip installation of all workspace members (#6539)

Extends #6538
See #4028

Another version of https://github.com/astral-sh/uv/pull/6398
This commit is contained in:
Zanie Blue 2024-08-23 15:39:33 -05:00 committed by GitHub
parent 4e82db093a
commit ca50243174
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 117 additions and 1 deletions

View file

@ -1174,6 +1174,10 @@ uv sync [OPTIONS]
<p>By default, the current project is installed into the environment with all of its dependencies. The <code>--no-install-project</code> option allows the project to be excluded, but all of its dependencies are still installed. This is particularly useful in situations like building Docker images where installing the project separately from its dependencies allows optimal layer caching.</p>
</dd><dt><code>--no-install-workspace</code></dt><dd><p>Do not install any workspace members, including the root project.</p>
<p>By default, all of the workspace members and their dependencies are installed into the environment. The <code>--no-install-workspace</code> option allows exclusion of all the workspace members while retaining their dependencies. This is particularly useful in situations like building Docker images where installing the workspace separately from its dependencies allows optimal layer caching.</p>
</dd><dt><code>--no-progress</code></dt><dd><p>Hide all progress outputs.</p>
<p>For example, spinners or progress bars.</p>