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:
@@ -1170,6 +1170,10 @@ uv sync [OPTIONS]
|
||||
|
||||
</dd><dt><code>--no-index</code></dt><dd><p>Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via <code>--find-links</code></p>
|
||||
|
||||
</dd><dt><code>--no-install-package</code> <i>no-install-package</i></dt><dd><p>Do not install the given package(s).</p>
|
||||
|
||||
<p>By default, all of the project’s dependencies are installed into the environment. The <code>--no-install-package</code> option allows exclusion of specific packages. Note this can result in a broken environment, and should be used with caution.</p>
|
||||
|
||||
</dd><dt><code>--no-install-project</code></dt><dd><p>Do not install the current project.</p>
|
||||
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user