Support --active for PEP 723 script environments (#11433)

## Summary

See: https://github.com/astral-sh/uv/pull/11361#discussion_r1948851085
This commit is contained in:
Charlie Marsh
2025-02-13 14:40:21 -05:00
committed by GitHub
parent bccd1dc973
commit ceb22fcfe5
17 changed files with 354 additions and 61 deletions

View File

@@ -1486,9 +1486,9 @@ uv sync [OPTIONS]
<h3 class="cli-reference">Options</h3>
<dl class="cli-reference"><dt><code>--active</code></dt><dd><p>Prefer the active virtual environment over the project&#8217;s virtual environment.</p>
<dl class="cli-reference"><dt><code>--active</code></dt><dd><p>Sync dependencies to the active virtual environment.</p>
<p>If the project virtual environment is active or no virtual environment is active, this has no effect.</p>
<p>Instead of creating or updating the virtual environment for the project or script, the active virtual environment will be preferred, if the <code>VIRTUAL_ENV</code> environment variable is set.</p>
</dd><dt><code>--all-extras</code></dt><dd><p>Include all optional dependencies.</p>