mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
4941 lines
380 KiB
Plaintext
4941 lines
380 KiB
Plaintext
#compdef uv
|
|
|
|
autoload -U is-at-least
|
|
|
|
_uv() {
|
|
typeset -A opt_args
|
|
typeset -a _arguments_options
|
|
local ret=1
|
|
|
|
if is-at-least 5.2; then
|
|
_arguments_options=(-s -S -C)
|
|
else
|
|
_arguments_options=(-s -C)
|
|
fi
|
|
|
|
local context curcontext="$curcontext" state line
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'-V[Display the uv version]' \
|
|
'--version[Display the uv version]' \
|
|
":: :_uv_commands" \
|
|
"*::: :->uv" \
|
|
&& ret=0
|
|
case $state in
|
|
(uv)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:uv-command-$line[1]:"
|
|
case $line[1] in
|
|
(run)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'(--all-extras)*--extra=[Include optional dependencies from the specified extra name]:EXTRA:_default' \
|
|
'*--no-extra=[Exclude the specified optional dependencies, if \`--all-extras\` is supplied]:NO_EXTRA:_default' \
|
|
'(--only-group --only-dev)*--group=[Include dependencies from the specified dependency group]:GROUP:_default' \
|
|
'*--no-group=[Disable the specified dependency group]:NO_GROUP:_default' \
|
|
'(--group --dev --all-groups)*--only-group=[Only include dependencies from the specified dependency group]:ONLY_GROUP:_default' \
|
|
'*--env-file=[Load environment variables from a \`.env\` file]:ENV_FILE:_files' \
|
|
'*-w+[Run with the given packages installed]:WITH:_default' \
|
|
'*--with=[Run with the given packages installed]:WITH:_default' \
|
|
'*--with-editable=[Run with the given packages installed in editable mode]:WITH_EDITABLE:_default' \
|
|
'*--with-requirements=[Run with all packages listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'(--all-packages)--package=[Run the command in a specific package in the workspace]:PACKAGE:_default' \
|
|
'-p+[The Python interpreter to use for the run environment.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use for the run environment.]:PYTHON:_default' \
|
|
'--max-recursion-depth=[Number of times that \`uv run\` will allow recursive invocations]:MAX_RECURSION_DEPTH:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--extra)--all-extras[Include all optional dependencies]' \
|
|
'--no-all-extras[]' \
|
|
'--dev[Include the development dependency group]' \
|
|
'--no-dev[Disable the development dependency group]' \
|
|
'--no-default-groups[Ignore the default dependency groups]' \
|
|
'(--only-group --only-dev)--all-groups[Include dependencies from all dependency groups]' \
|
|
'(-s --script --gui-script)-m[Run a Python module]' \
|
|
'(-s --script --gui-script)--module[Run a Python module]' \
|
|
'(--group --all-groups --no-dev)--only-dev[Only include the development dependency group]' \
|
|
'--no-editable[Install any editable dependencies, including the project and any workspace members, as non-editable]' \
|
|
'--inexact[Do not remove extraneous packages present in the environment]' \
|
|
'--exact[Perform an exact sync, removing extraneous packages]' \
|
|
'--no-env-file[Avoid reading environment variables from a \`.env\` file]' \
|
|
'--isolated[Run the command in an isolated virtual environment]' \
|
|
'--active[Prefer the active virtual environment over the project'\''s virtual environment]' \
|
|
'--no-active[Prefer project'\''s virtual environment over an active environment]' \
|
|
'--no-sync[Avoid syncing the virtual environment]' \
|
|
'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \
|
|
'(--locked -U --upgrade --no-sources)--frozen[Run without updating the \`uv.lock\` file]' \
|
|
'(-m --module --gui-script)-s[Run the given path as a Python script]' \
|
|
'(-m --module --gui-script)--script[Run the given path as a Python script]' \
|
|
'(-s --script -m --module)--gui-script[Run the given path as a Python GUI script]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'(--package)--all-packages[Run the command with all workspace members installed]' \
|
|
'(--package)--no-project[Avoid discovering the project or workspace]' \
|
|
'--show-resolution[Whether to show resolver and installer output from any environment modifications]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
"*::external_command:_default" \
|
|
&& ret=0
|
|
;;
|
|
(init)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'(--script)--name=[The name of the project]:NAME:_default' \
|
|
'(--script)--description=[Set the project description]:DESCRIPTION:_default' \
|
|
'(--script)--vcs=[Initialize a version control system for the project]:VCS:((git\:"Use Git for version control"
|
|
none\:"Do not use any version control system"))' \
|
|
'(--script --no-package)--build-backend=[Initialize a build-backend of choice for the project]:BUILD_BACKEND:((uv\:"Use uv as the project build backend"
|
|
hatch\:"Use \[hatchling\](https\://pypi.org/project/hatchling) as the project build backend"
|
|
flit\:"Use \[flit-core\](https\://pypi.org/project/flit-core) as the project build backend"
|
|
pdm\:"Use \[pdm-backend\](https\://pypi.org/project/pdm-backend) as the project build backend"
|
|
poetry\:"Use \[poetry-core\](https\://pypi.org/project/poetry-core) as the project build backend"
|
|
setuptools\:"Use \[setuptools\](https\://pypi.org/project/setuptools) as the project build backend"
|
|
maturin\:"Use \[maturin\](https\://pypi.org/project/maturin) as the project build backend"
|
|
scikit\:"Use \[scikit-build-core\](https\://pypi.org/project/scikit-build-core) as the project build backend"))' \
|
|
'--author-from=[Fill in the \`authors\` field in the \`pyproject.toml\`]:AUTHOR_FROM:((auto\:"Fetch the author information from some sources (e.g., Git) automatically"
|
|
git\:"Fetch the author information from Git configuration only"
|
|
none\:"Do not infer the author information"))' \
|
|
'-p+[The Python interpreter to use to determine the minimum supported Python version.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use to determine the minimum supported Python version.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--script)--bare[Only create a \`pyproject.toml\`]' \
|
|
'(--package)--virtual[Create a virtual project, rather than a package]' \
|
|
'--package[Set up the project to be built as a Python package]' \
|
|
'(--lib --build-backend)--no-package[Do not set up the project to be built as a Python package]' \
|
|
'(--lib --script)--app[Create a project for an application]' \
|
|
'(--app --script)--lib[Create a project for a library]' \
|
|
'(--app --lib --package --build-backend --description)--script[Create a script]' \
|
|
'(--script)--no-description[Disable the description for the project]' \
|
|
'--backend[Invalid option name for build backend]' \
|
|
'--no-readme[Do not create a \`README.md\` file]' \
|
|
'--no-pin-python[Do not create a \`.python-version\` file for the project]' \
|
|
'--pin-python[Create a \`.python-version\` file for the project]' \
|
|
'--no-workspace[Avoid discovering a workspace and create a standalone project]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'::path -- The path to use for the project/script:_files' \
|
|
&& ret=0
|
|
;;
|
|
(add)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'*-r+[Add all packages listed in the given \`requirements.txt\` files]:REQUIREMENTS:_files' \
|
|
'*--requirements=[Add all packages listed in the given \`requirements.txt\` files]:REQUIREMENTS:_files' \
|
|
'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'-m+[Apply this marker to all added packages]:MARKER:_default' \
|
|
'--marker=[Apply this marker to all added packages]:MARKER:_default' \
|
|
'(--dev --group)--optional=[Add the requirements to the package'\''s optional dependencies for the specified extra]:OPTIONAL:_default' \
|
|
'(--dev --optional --script)--group=[Add the requirements to the specified dependency group]:GROUP:_default' \
|
|
'--bounds=[The kind of version specifier to use when adding dependencies]:BOUNDS:((lower\:"Only a lower bound, e.g., \`>=1.2.3\`"
|
|
major\:"Allow the same major version, similar to the semver caret, e.g., \`>=1.2.3, <2.0.0\`"
|
|
minor\:"Allow the same minor version, similar to the semver tilde, e.g., \`>=1.2.3, <1.3.0\`"
|
|
exact\:"Pin the exact version, e.g., \`==1.2.3\`"))' \
|
|
'--rev=[Commit to use when adding a dependency from Git]:REV:_default' \
|
|
'--tag=[Tag to use when adding a dependency from Git]:TAG:_default' \
|
|
'--branch=[Branch to use when adding a dependency from Git]:BRANCH:_default' \
|
|
'*--extra=[Extras to enable for the dependency]:EXTRA:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'(--isolated)--package=[Add the dependency to a specific package in the workspace]:PACKAGE:_default' \
|
|
'(--dev --optional --package --workspace)--script=[Add the dependency to the specified Python script, rather than to a project]:SCRIPT:_files' \
|
|
'-p+[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--optional --group --script)--dev[Add the requirements to the development dependency group]' \
|
|
'--editable[Add the requirements as editable]' \
|
|
'--no-editable[]' \
|
|
'(--editable --no-editable --rev --tag --branch)--raw[Add a dependency as provided]' \
|
|
'(--frozen)--no-sync[Avoid syncing the virtual environment]' \
|
|
'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \
|
|
'(--locked -U --upgrade --no-sources)--frozen[Add dependencies without re-locking the project]' \
|
|
'--active[Prefer the active virtual environment over the project'\''s virtual environment]' \
|
|
'--no-active[Prefer project'\''s virtual environment over an active environment]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'--workspace[Add the dependency as a workspace member]' \
|
|
'--no-workspace[Don'\''t add the dependency as a workspace member]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::packages -- The packages to add, as PEP 508 requirements (e.g., `ruff==0.5.0`):_default' \
|
|
&& ret=0
|
|
;;
|
|
(remove)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'(--dev --group --script)--optional=[Remove the packages from the project'\''s optional dependencies for the specified extra]:OPTIONAL:_default' \
|
|
'(--dev --optional --script)--group=[Remove the packages from the specified dependency group]:GROUP:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'(--isolated)--package=[Remove the dependencies from a specific package in the workspace]:PACKAGE:_default' \
|
|
'--script=[Remove the dependency from the specified Python script, rather than from a project]:SCRIPT:_files' \
|
|
'-p+[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--optional --group)--dev[Remove the packages from the development dependency group]' \
|
|
'(--frozen)--no-sync[Avoid syncing the virtual environment after re-locking the project]' \
|
|
'--active[Prefer the active virtual environment over the project'\''s virtual environment]' \
|
|
'--no-active[Prefer project'\''s virtual environment over an active environment]' \
|
|
'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \
|
|
'(--locked -U --upgrade --no-sources)--frozen[Remove dependencies without re-locking the project]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::packages -- The names of the dependencies to remove (e.g., `ruff`):_default' \
|
|
&& ret=0
|
|
;;
|
|
(version)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'*--bump=[Update the project version using the given semantics]:BUMP:((major\:"Increase the major version (e.g., 1.2.3 => 2.0.0)"
|
|
minor\:"Increase the minor version (e.g., 1.2.3 => 1.3.0)"
|
|
patch\:"Increase the patch version (e.g., 1.2.3 => 1.2.4)"
|
|
stable\:"Move from a pre-release to stable version (e.g., 1.2.3b4.post5.dev6 => 1.2.3)"
|
|
alpha\:"Increase the alpha version (e.g., 1.2.3a4 => 1.2.3a5)"
|
|
beta\:"Increase the beta version (e.g., 1.2.3b4 => 1.2.3b5)"
|
|
rc\:"Increase the rc version (e.g., 1.2.3rc4 => 1.2.3rc5)"
|
|
post\:"Increase the post version (e.g., 1.2.3.post5 => 1.2.3.post6)"
|
|
dev\:"Increase the dev version (e.g., 1.2.3a4.dev6 => 1.2.3.dev7)"))' \
|
|
'--output-format=[The format of the output]:OUTPUT_FORMAT:((text\:"Display the version as plain text"
|
|
json\:"Display the version as JSON"))' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'(--isolated)--package=[Update the version of a specific package in the workspace]:PACKAGE:_default' \
|
|
'-p+[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use for resolving and syncing.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--dry-run[Don'\''t write a new version to the \`pyproject.toml\`]' \
|
|
'--short[Only show the version]' \
|
|
'(--frozen)--no-sync[Avoid syncing the virtual environment after re-locking the project]' \
|
|
'--active[Prefer the active virtual environment over the project'\''s virtual environment]' \
|
|
'--no-active[Prefer project'\''s virtual environment over an active environment]' \
|
|
'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \
|
|
'(--locked -U --upgrade --no-sources)--frozen[Update the version without re-locking the project]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'::value -- Set the project version to this value:_default' \
|
|
&& ret=0
|
|
;;
|
|
(sync)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'(--all-extras)*--extra=[Include optional dependencies from the specified extra name]:EXTRA:_default' \
|
|
'--output-format=[Select the output format]:OUTPUT_FORMAT:((text\:"Display the result in a human-readable format"
|
|
json\:"Display the result in JSON format"))' \
|
|
'*--no-extra=[Exclude the specified optional dependencies, if \`--all-extras\` is supplied]:NO_EXTRA:_default' \
|
|
'(--only-group --only-dev)*--group=[Include dependencies from the specified dependency group]:GROUP:_default' \
|
|
'*--no-group=[Disable the specified dependency group]:NO_GROUP:_default' \
|
|
'(--group --dev --all-groups)*--only-group=[Only include dependencies from the specified dependency group]:ONLY_GROUP:_default' \
|
|
'*--no-install-package=[Do not install the given package(s)]:NO_INSTALL_PACKAGE:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'(--all-packages)--package=[Sync for a specific package in the workspace]:PACKAGE:_default' \
|
|
'(--all-packages --package --no-install-project --no-install-workspace --extra --all-extras --no-extra --no-all-extras --dev --no-dev --only-dev --group --no-group --no-default-groups --only-group --all-groups)--script=[Sync the environment for a Python script, rather than the current project]:SCRIPT:_files' \
|
|
'-p+[The Python interpreter to use for the project environment.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use for the project environment.]:PYTHON:_default' \
|
|
'--python-platform=[The platform for which requirements should be installed]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows"
|
|
linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux"
|
|
macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS"
|
|
x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target"
|
|
i686-pc-windows-msvc\:"A 32-bit x86 Windows target"
|
|
x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`"
|
|
aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices"
|
|
x86_64-apple-darwin\:"An x86 macOS target"
|
|
aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`"
|
|
aarch64-unknown-linux-musl\:"An ARM64 Linux target"
|
|
x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target"
|
|
x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`"
|
|
x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform"
|
|
x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform"
|
|
x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform"
|
|
x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform"
|
|
x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform"
|
|
x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform"
|
|
x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform"
|
|
x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform"
|
|
x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform"
|
|
x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform"
|
|
x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform"
|
|
x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform"
|
|
aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`"
|
|
aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform"
|
|
aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform"
|
|
aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform"
|
|
aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform"
|
|
aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform"
|
|
aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform"
|
|
aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform"
|
|
aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform"
|
|
aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform"
|
|
aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform"
|
|
aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform"
|
|
aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform"
|
|
wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--extra)--all-extras[Include all optional dependencies]' \
|
|
'--no-all-extras[]' \
|
|
'--dev[Include the development dependency group]' \
|
|
'--no-dev[Disable the development dependency group]' \
|
|
'(--group --all-groups --no-dev)--only-dev[Only include the development dependency group]' \
|
|
'--no-default-groups[Ignore the default dependency groups]' \
|
|
'(--only-group --only-dev)--all-groups[Include dependencies from all dependency groups]' \
|
|
'--no-editable[Install any editable dependencies, including the project and any workspace members, as non-editable]' \
|
|
'--inexact[Do not remove extraneous packages present in the environment]' \
|
|
'--exact[Perform an exact sync, removing extraneous packages]' \
|
|
'--active[Sync dependencies to the active virtual environment]' \
|
|
'--no-active[Prefer project'\''s virtual environment over an active environment]' \
|
|
'--no-install-project[Do not install the current project]' \
|
|
'--no-install-workspace[Do not install any workspace members, including the root project]' \
|
|
'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \
|
|
'(--locked -U --upgrade --no-sources)--frozen[Sync without updating the \`uv.lock\` file]' \
|
|
'--dry-run[Perform a dry run, without writing the lockfile or modifying the project environment]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'(--package)--all-packages[Sync all packages in the workspace]' \
|
|
'--check[Check if the Python environment is synchronized with the project]' \
|
|
'--no-check[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(lock)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--script=[Lock the specified Python script, rather than the current project]:SCRIPT:_files' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'-p+[The Python interpreter to use during resolution.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use during resolution.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--check-exists -U --upgrade)--check[Check if the lockfile is up-to-date]' \
|
|
'(--check)--check-exists[Assert that a \`uv.lock\` exists without checking if it is up-to-date]' \
|
|
'(--check-exists --check)--dry-run[Perform a dry run, without writing the lockfile]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(export)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--format=[The format to which \`uv.lock\` should be exported]:FORMAT:((requirements.txt\:"Export in \`requirements.txt\` format"
|
|
pylock.toml\:"Export in \`pylock.toml\` format"))' \
|
|
'(--all-packages)--package=[Export the dependencies for a specific package in the workspace]:PACKAGE:_default' \
|
|
'(--all-packages)*--prune=[Prune the given package from the dependency tree]:PACKAGE:_default' \
|
|
'(--all-extras)*--extra=[Include optional dependencies from the specified extra name]:EXTRA:_default' \
|
|
'*--no-extra=[Exclude the specified optional dependencies, if \`--all-extras\` is supplied]:NO_EXTRA:_default' \
|
|
'(--only-group --only-dev)*--group=[Include dependencies from the specified dependency group]:GROUP:_default' \
|
|
'*--no-group=[Disable the specified dependency group]:NO_GROUP:_default' \
|
|
'(--group --dev --all-groups)*--only-group=[Only include dependencies from the specified dependency group]:ONLY_GROUP:_default' \
|
|
'-o+[Write the exported requirements to the given file]:OUTPUT_FILE:_files' \
|
|
'--output-file=[Write the exported requirements to the given file]:OUTPUT_FILE:_files' \
|
|
'*--no-emit-package=[Do not emit the given package(s)]:NO_EMIT_PACKAGE:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'(--all-packages --package --no-emit-project --no-emit-workspace)--script=[Export the dependencies for the specified PEP 723 Python script, rather than the current project]:SCRIPT:_files' \
|
|
'-p+[The Python interpreter to use during resolution.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use during resolution.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--package)--all-packages[Export the entire workspace]' \
|
|
'(--extra)--all-extras[Include all optional dependencies]' \
|
|
'--no-all-extras[]' \
|
|
'--dev[Include the development dependency group]' \
|
|
'--no-dev[Disable the development dependency group]' \
|
|
'(--group --all-groups --no-dev)--only-dev[Only include the development dependency group]' \
|
|
'--no-default-groups[Ignore the default dependency groups]' \
|
|
'(--only-group --only-dev)--all-groups[Include dependencies from all dependency groups]' \
|
|
'--no-annotate[Exclude comment annotations indicating the source of each package]' \
|
|
'--annotate[]' \
|
|
'--no-header[Exclude the comment header at the top of the generated output file]' \
|
|
'--header[]' \
|
|
'--no-editable[Export any editable dependencies, including the project and any workspace members, as non-editable]' \
|
|
'--hashes[Include hashes for all dependencies]' \
|
|
'--no-hashes[Omit hashes in the generated output]' \
|
|
'--no-emit-project[Do not emit the current project]' \
|
|
'--no-emit-workspace[Do not emit any workspace members, including the root project]' \
|
|
'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \
|
|
'(--locked -U --upgrade --no-sources)--frozen[Do not update the \`uv.lock\` before exporting]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(tree)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-d+[Maximum display depth of the dependency tree]:DEPTH:_default' \
|
|
'--depth=[Maximum display depth of the dependency tree]:DEPTH:_default' \
|
|
'*--prune=[Prune the given package from the display of the dependency tree]:PRUNE:_default' \
|
|
'*--package=[Display only the specified packages]:PACKAGE:_default' \
|
|
'(--only-group --only-dev)*--group=[Include dependencies from the specified dependency group]:GROUP:_default' \
|
|
'*--no-group=[Disable the specified dependency group]:NO_GROUP:_default' \
|
|
'(--group --dev --all-groups)*--only-group=[Only include dependencies from the specified dependency group]:ONLY_GROUP:_default' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'--script=[Show the dependency tree the specified PEP 723 Python script, rather than the current project]:SCRIPT:_files' \
|
|
'(--universal)--python-version=[The Python version to use when filtering the tree]:PYTHON_VERSION:_default' \
|
|
'(--universal)--python-platform=[The platform to use when filtering the tree]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows"
|
|
linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux"
|
|
macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS"
|
|
x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target"
|
|
i686-pc-windows-msvc\:"A 32-bit x86 Windows target"
|
|
x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`"
|
|
aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices"
|
|
x86_64-apple-darwin\:"An x86 macOS target"
|
|
aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`"
|
|
aarch64-unknown-linux-musl\:"An ARM64 Linux target"
|
|
x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target"
|
|
x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`"
|
|
x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform"
|
|
x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform"
|
|
x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform"
|
|
x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform"
|
|
x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform"
|
|
x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform"
|
|
x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform"
|
|
x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform"
|
|
x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform"
|
|
x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform"
|
|
x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform"
|
|
x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform"
|
|
aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`"
|
|
aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform"
|
|
aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform"
|
|
aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform"
|
|
aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform"
|
|
aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform"
|
|
aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform"
|
|
aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform"
|
|
aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform"
|
|
aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform"
|
|
aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform"
|
|
aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform"
|
|
aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform"
|
|
wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \
|
|
'-p+[The Python interpreter to use for locking and filtering.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use for locking and filtering.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--universal[Show a platform-independent dependency tree]' \
|
|
'--no-dedupe[Do not de-duplicate repeated dependencies. Usually, when a package has already displayed its dependencies, further occurrences will not re-display its dependencies, and will include a (*) to indicate it has already been shown. This flag will cause those duplicates to be repeated]' \
|
|
'--invert[Show the reverse dependencies for the given package. This flag will invert the tree and display the packages that depend on the given package]' \
|
|
'--outdated[Show the latest available version of each package in the tree]' \
|
|
'--dev[Include the development dependency group]' \
|
|
'(--group --all-groups --no-dev)--only-dev[Only include the development dependency group]' \
|
|
'--no-dev[Disable the development dependency group]' \
|
|
'--no-default-groups[Ignore the default dependency groups]' \
|
|
'(--only-group --only-dev)--all-groups[Include dependencies from all dependency groups]' \
|
|
'(--frozen -U --upgrade)--locked[Assert that the \`uv.lock\` will remain unchanged]' \
|
|
'(--locked -U --upgrade --no-sources)--frozen[Display the requirements without locking the project]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(tool)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
":: :_uv__tool_commands" \
|
|
"*::: :->tool" \
|
|
&& ret=0
|
|
|
|
case $state in
|
|
(tool)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:uv-tool-command-$line[1]:"
|
|
case $line[1] in
|
|
(run)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--from=[Use the given package to provide the command]:FROM:_default' \
|
|
'*-w+[Run with the given packages installed]:WITH:_default' \
|
|
'*--with=[Run with the given packages installed]:WITH:_default' \
|
|
'*--with-editable=[Run with the given packages installed in editable mode]:WITH_EDITABLE:_default' \
|
|
'*--with-requirements=[Run with all packages listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \
|
|
'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \
|
|
'*--env-file=[Load environment variables from a \`.env\` file]:ENV_FILE:_files' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'-p+[The Python interpreter to use to build the run environment.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use to build the run environment.]:PYTHON:_default' \
|
|
'--generate-shell-completion=[]:GENERATE_SHELL_COMPLETION:(bash elvish fish nushell powershell zsh)' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--isolated[Run the tool in an isolated virtual environment, ignoring any already-installed tools]' \
|
|
'--no-env-file[Avoid reading environment variables from a \`.env\` file]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'--show-resolution[Whether to show resolver and installer output from any environment modifications]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
"*::external_command:_default" \
|
|
&& ret=0
|
|
;;
|
|
(uvx)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--from=[Use the given package to provide the command]:FROM:_default' \
|
|
'*-w+[Run with the given packages installed]:WITH:_default' \
|
|
'*--with=[Run with the given packages installed]:WITH:_default' \
|
|
'*--with-editable=[Run with the given packages installed in editable mode]:WITH_EDITABLE:_default' \
|
|
'*--with-requirements=[Run with all packages listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \
|
|
'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \
|
|
'*--env-file=[Load environment variables from a \`.env\` file]:ENV_FILE:_files' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'-p+[The Python interpreter to use to build the run environment.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use to build the run environment.]:PYTHON:_default' \
|
|
'--generate-shell-completion=[]:GENERATE_SHELL_COMPLETION:(bash elvish fish nushell powershell zsh)' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--isolated[Run the tool in an isolated virtual environment, ignoring any already-installed tools]' \
|
|
'--no-env-file[Avoid reading environment variables from a \`.env\` file]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'--show-resolution[Whether to show resolver and installer output from any environment modifications]' \
|
|
'-V[Display the uvx version]' \
|
|
'--version[Display the uvx version]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
"*::external_command:_default" \
|
|
&& ret=0
|
|
;;
|
|
(install)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--from=[The package to install commands from]:FROM:_default' \
|
|
'*-w+[Include the following additional requirements]:WITH:_default' \
|
|
'*--with=[Include the following additional requirements]:WITH:_default' \
|
|
'*--with-requirements=[Include all requirements listed in the given \`requirements.txt\` files]:WITH_REQUIREMENTS:_default' \
|
|
'*--with-editable=[Include the given packages in editable mode]:WITH_EDITABLE:_default' \
|
|
'*--with-executables-from=[Install executables from the following packages]:WITH_EXECUTABLES_FROM:_default' \
|
|
'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \
|
|
'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'-p+[The Python interpreter to use to build the tool environment.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use to build the tool environment.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-e[Install the target package in editable mode, such that changes in the package'\''s source directory are reflected without reinstallation]' \
|
|
'--editable[Install the target package in editable mode, such that changes in the package'\''s source directory are reflected without reinstallation]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'--force[Force installation of the tool]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
':package -- The package to install commands from:_default' \
|
|
&& ret=0
|
|
;;
|
|
(upgrade)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-p+[Upgrade a tool, and specify it to use the given Python interpreter to build its environment. Use with \`--all\` to apply to all tools.]:PYTHON:_default' \
|
|
'--python=[Upgrade a tool, and specify it to use the given Python interpreter to build its environment. Use with \`--all\` to apply to all tools.]:PYTHON:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTING_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'()--all[Upgrade all tools]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::name -- The name of the tool to upgrade, along with an optional version specifier:_default' \
|
|
&& ret=0
|
|
;;
|
|
(list)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--show-paths[Whether to display the path to each tool environment and installed executable]' \
|
|
'--show-version-specifiers[Whether to display the version specifier(s) used to install each tool]' \
|
|
'--show-with[Whether to display the additional requirements installed with each tool]' \
|
|
'--show-extras[Whether to display the extra requirements installed with each tool]' \
|
|
'--no-python-downloads[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(uninstall)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'()--all[Uninstall all tools]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::name -- The name of the tool to uninstall:_default' \
|
|
&& ret=0
|
|
;;
|
|
(update-shell)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(dir)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--bin[Show the directory into which \`uv tool\` will install executables.]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
(python)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
":: :_uv__python_commands" \
|
|
"*::: :->python" \
|
|
&& ret=0
|
|
|
|
case $state in
|
|
(python)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:uv-python-command-$line[1]:"
|
|
case $line[1] in
|
|
(list)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--output-format=[Select the output format]:OUTPUT_FORMAT:((text\:"Plain text (for humans)"
|
|
json\:"JSON (for computers)"))' \
|
|
'--python-downloads-json-url=[URL pointing to JSON of custom Python installations]:PYTHON_DOWNLOADS_JSON_URL:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--all-versions[List all Python versions, including old patch versions]' \
|
|
'--all-platforms[List Python downloads for all platforms]' \
|
|
'--all-arches[List Python downloads for all architectures]' \
|
|
'(--only-downloads)--only-installed[Only show installed Python versions]' \
|
|
'(--only-installed)--only-downloads[Only show available Python downloads]' \
|
|
'--show-urls[Show the URLs of available Python downloads]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'::request -- A Python request to filter by:_default' \
|
|
&& ret=0
|
|
;;
|
|
(install)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-i+[The directory to store the Python installation in]:INSTALL_DIR:_files' \
|
|
'--install-dir=[The directory to store the Python installation in]:INSTALL_DIR:_files' \
|
|
'--mirror=[Set the URL to use as the source for downloading Python installations]:MIRROR:_default' \
|
|
'--pypy-mirror=[Set the URL to use as the source for downloading PyPy installations]:PYPY_MIRROR:_default' \
|
|
'--python-downloads-json-url=[URL pointing to JSON of custom Python installations]:PYTHON_DOWNLOADS_JSON_URL:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--bin[Install a Python executable into the \`bin\` directory]' \
|
|
'(--default)--no-bin[Do not install a Python executable into the \`bin\` directory]' \
|
|
'--registry[Register the Python installation in the Windows registry]' \
|
|
'--no-registry[Do not register the Python installation in the Windows registry]' \
|
|
'-r[Reinstall the requested Python version, if it'\''s already installed]' \
|
|
'--reinstall[Reinstall the requested Python version, if it'\''s already installed]' \
|
|
'-f[Replace existing Python executables during installation]' \
|
|
'--force[Replace existing Python executables during installation]' \
|
|
'(--no-bin)--default[Use as the default Python version]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::targets -- The Python version(s) to install:_default' \
|
|
&& ret=0
|
|
;;
|
|
(upgrade)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-i+[The directory Python installations are stored in]:INSTALL_DIR:_files' \
|
|
'--install-dir=[The directory Python installations are stored in]:INSTALL_DIR:_files' \
|
|
'--mirror=[Set the URL to use as the source for downloading Python installations]:MIRROR:_default' \
|
|
'--pypy-mirror=[Set the URL to use as the source for downloading PyPy installations]:PYPY_MIRROR:_default' \
|
|
'--python-downloads-json-url=[URL pointing to JSON of custom Python installations]:PYTHON_DOWNLOADS_JSON_URL:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::targets -- The Python minor version(s) to upgrade:_default' \
|
|
&& ret=0
|
|
;;
|
|
(find)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'(--no-project --system --no-system)--script=[Find the environment for a Python script, rather than the current project]:SCRIPT:_files' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--no-project[Avoid discovering a project or workspace]' \
|
|
'--system[Only find system Python interpreters]' \
|
|
'--no-system[]' \
|
|
'--show-version[Show the Python version that would be used instead of the path to the interpreter]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'::request -- The Python request:_default' \
|
|
&& ret=0
|
|
;;
|
|
(pin)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--resolved[Write the resolved Python interpreter path instead of the request]' \
|
|
'--no-resolved[]' \
|
|
'--no-project[Avoid validating the Python pin is compatible with the project or workspace]' \
|
|
'--global[Update the global Python version pin]' \
|
|
'(--resolved)--rm[Remove the Python version pin]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'::request -- The Python version request:_default' \
|
|
&& ret=0
|
|
;;
|
|
(dir)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--bin[Show the directory into which \`uv python\` will install Python executables.]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(uninstall)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-i+[The directory where the Python was installed]:INSTALL_DIR:_files' \
|
|
'--install-dir=[The directory where the Python was installed]:INSTALL_DIR:_files' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'()--all[Uninstall all managed Python versions]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::targets -- The Python version(s) to uninstall:_default' \
|
|
&& ret=0
|
|
;;
|
|
(update-shell)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
(pip)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
":: :_uv__pip_commands" \
|
|
"*::: :->pip" \
|
|
&& ret=0
|
|
|
|
case $state in
|
|
(pip)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:uv-pip-command-$line[1]:"
|
|
case $line[1] in
|
|
(compile)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \
|
|
'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'(--all-extras)*--extra=[Include optional dependencies from the specified extra name; may be provided more than once]:EXTRA:_default' \
|
|
'*--group=[Install the specified dependency group from a \`pyproject.toml\`]:GROUP:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'-o+[Write the compiled requirements to the given \`requirements.txt\` or \`pylock.toml\` file]:OUTPUT_FILE:_files' \
|
|
'--output-file=[Write the compiled requirements to the given \`requirements.txt\` or \`pylock.toml\` file]:OUTPUT_FILE:_files' \
|
|
'--format=[The format in which the resolution should be output]:FORMAT:((requirements.txt\:"Export in \`requirements.txt\` format"
|
|
pylock.toml\:"Export in \`pylock.toml\` format"))' \
|
|
'--annotation-style=[The style of the annotation comments included in the output file, used to indicate the source of each package]:ANNOTATION_STYLE:((line\:"Render the annotations on a single, comma-separated line"
|
|
split\:"Render each annotation on its own line"))' \
|
|
'--custom-compile-command=[The header comment to include at the top of the output file generated by \`uv pip compile\`]:CUSTOM_COMPILE_COMMAND:_default' \
|
|
'-p+[The Python interpreter to use during resolution.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use during resolution.]:PYTHON:_default' \
|
|
'(--no-build)*--no-binary=[Don'\''t install pre-built wheels]:NO_BINARY:_default' \
|
|
'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY:_default' \
|
|
'--python-version=[The Python version to use for resolution]:PYTHON_VERSION:_default' \
|
|
'--python-platform=[The platform for which requirements should be resolved]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows"
|
|
linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux"
|
|
macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS"
|
|
x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target"
|
|
i686-pc-windows-msvc\:"A 32-bit x86 Windows target"
|
|
x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`"
|
|
aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices"
|
|
x86_64-apple-darwin\:"An x86 macOS target"
|
|
aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`"
|
|
aarch64-unknown-linux-musl\:"An ARM64 Linux target"
|
|
x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target"
|
|
x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`"
|
|
x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform"
|
|
x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform"
|
|
x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform"
|
|
x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform"
|
|
x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform"
|
|
x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform"
|
|
x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform"
|
|
x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform"
|
|
x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform"
|
|
x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform"
|
|
x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform"
|
|
x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform"
|
|
aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`"
|
|
aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform"
|
|
aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform"
|
|
aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform"
|
|
aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform"
|
|
aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform"
|
|
aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform"
|
|
aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform"
|
|
aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform"
|
|
aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform"
|
|
aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform"
|
|
aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform"
|
|
aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform"
|
|
wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \
|
|
'*--no-emit-package=[Specify a package to omit from the output resolution. Its dependencies will still be included in the resolution. Equivalent to pip-compile'\''s \`--unsafe-package\` option]:NO_EMIT_PACKAGE:_default' \
|
|
'--torch-backend=[The backend to use when fetching packages in the PyTorch ecosystem (e.g., \`cpu\`, \`cu126\`, or \`auto\`)]:TORCH_BACKEND:((auto\:"Select the appropriate PyTorch index based on the operating system and CUDA driver version"
|
|
cpu\:"Use the CPU-only PyTorch index"
|
|
cu128\:"Use the PyTorch index for CUDA 12.8"
|
|
cu126\:"Use the PyTorch index for CUDA 12.6"
|
|
cu125\:"Use the PyTorch index for CUDA 12.5"
|
|
cu124\:"Use the PyTorch index for CUDA 12.4"
|
|
cu123\:"Use the PyTorch index for CUDA 12.3"
|
|
cu122\:"Use the PyTorch index for CUDA 12.2"
|
|
cu121\:"Use the PyTorch index for CUDA 12.1"
|
|
cu120\:"Use the PyTorch index for CUDA 12.0"
|
|
cu118\:"Use the PyTorch index for CUDA 11.8"
|
|
cu117\:"Use the PyTorch index for CUDA 11.7"
|
|
cu116\:"Use the PyTorch index for CUDA 11.6"
|
|
cu115\:"Use the PyTorch index for CUDA 11.5"
|
|
cu114\:"Use the PyTorch index for CUDA 11.4"
|
|
cu113\:"Use the PyTorch index for CUDA 11.3"
|
|
cu112\:"Use the PyTorch index for CUDA 11.2"
|
|
cu111\:"Use the PyTorch index for CUDA 11.1"
|
|
cu110\:"Use the PyTorch index for CUDA 11.0"
|
|
cu102\:"Use the PyTorch index for CUDA 10.2"
|
|
cu101\:"Use the PyTorch index for CUDA 10.1"
|
|
cu100\:"Use the PyTorch index for CUDA 10.0"
|
|
cu92\:"Use the PyTorch index for CUDA 9.2"
|
|
cu91\:"Use the PyTorch index for CUDA 9.1"
|
|
cu90\:"Use the PyTorch index for CUDA 9.0"
|
|
cu80\:"Use the PyTorch index for CUDA 8.0"
|
|
rocm6.3\:"Use the PyTorch index for ROCm 6.3"
|
|
rocm6.2.4\:"Use the PyTorch index for ROCm 6.2.4"
|
|
rocm6.2\:"Use the PyTorch index for ROCm 6.2"
|
|
rocm6.1\:"Use the PyTorch index for ROCm 6.1"
|
|
rocm6.0\:"Use the PyTorch index for ROCm 6.0"
|
|
rocm5.7\:"Use the PyTorch index for ROCm 5.7"
|
|
rocm5.6\:"Use the PyTorch index for ROCm 5.6"
|
|
rocm5.5\:"Use the PyTorch index for ROCm 5.5"
|
|
rocm5.4.2\:"Use the PyTorch index for ROCm 5.4.2"
|
|
rocm5.4\:"Use the PyTorch index for ROCm 5.4"
|
|
rocm5.3\:"Use the PyTorch index for ROCm 5.3"
|
|
rocm5.2\:"Use the PyTorch index for ROCm 5.2"
|
|
rocm5.1.1\:"Use the PyTorch index for ROCm 5.1.1"
|
|
rocm4.2\:"Use the PyTorch index for ROCm 4.2"
|
|
rocm4.1\:"Use the PyTorch index for ROCm 4.1"
|
|
rocm4.0.1\:"Use the PyTorch index for ROCm 4.0.1"
|
|
xpu\:"Use the PyTorch index for Intel XPU"))' \
|
|
'--resolver=[]:RESOLVER:(backtracking legacy)' \
|
|
'--max-rounds=[]:MAX_ROUNDS:_default' \
|
|
'--cert=[]:CERT:_default' \
|
|
'--client-cert=[]:CLIENT_CERT:_default' \
|
|
'--config=[]:CONFIG:_default' \
|
|
'--pip-args=[]:PIP_ARGS:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--extra)--all-extras[Include all optional dependencies]' \
|
|
'--no-all-extras[]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'--no-deps[Ignore package dependencies, instead only add those packages explicitly listed on the command line to the resulting requirements file]' \
|
|
'--deps[]' \
|
|
'--no-strip-extras[Include extras in the output file]' \
|
|
'--strip-extras[]' \
|
|
'--no-strip-markers[Include environment markers in the output file]' \
|
|
'--strip-markers[]' \
|
|
'--no-annotate[Exclude comment annotations indicating the source of each package]' \
|
|
'--annotate[]' \
|
|
'--no-header[Exclude the comment header at the top of the generated output file]' \
|
|
'--header[]' \
|
|
'--system[Install packages into the system Python environment]' \
|
|
'--no-system[]' \
|
|
'--generate-hashes[Include distribution hashes in the output file]' \
|
|
'--no-generate-hashes[]' \
|
|
'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \
|
|
'(--no-binary --only-binary)--build[]' \
|
|
'(--python-platform --strip-markers)--universal[Perform a universal resolution, attempting to generate a single \`requirements.txt\` output file that is compatible with all operating systems, architectures, and Python implementations]' \
|
|
'--no-universal[]' \
|
|
'--emit-index-url[Include \`--index-url\` and \`--extra-index-url\` entries in the generated output file]' \
|
|
'--no-emit-index-url[]' \
|
|
'--emit-find-links[Include \`--find-links\` entries in the generated output file]' \
|
|
'--no-emit-find-links[]' \
|
|
'--emit-build-options[Include \`--no-binary\` and \`--only-binary\` entries in the generated output file]' \
|
|
'--no-emit-build-options[]' \
|
|
'--emit-marker-expression[Whether to emit a marker string indicating when it is known that the resulting set of pinned dependencies is valid]' \
|
|
'--no-emit-marker-expression[]' \
|
|
'--emit-index-annotation[Include comment annotations indicating the index used to resolve each package (e.g., \`# from https\://pypi.org/simple\`)]' \
|
|
'--no-emit-index-annotation[]' \
|
|
'--allow-unsafe[]' \
|
|
'--no-allow-unsafe[]' \
|
|
'--reuse-hashes[]' \
|
|
'--no-reuse-hashes[]' \
|
|
'--emit-trusted-host[]' \
|
|
'--no-emit-trusted-host[]' \
|
|
'--no-config[]' \
|
|
'--emit-options[]' \
|
|
'--no-emit-options[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::src_file -- Include all packages listed in the given `requirements.in` files:_files' \
|
|
&& ret=0
|
|
;;
|
|
(sync)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'(--all-extras)*--extra=[Include optional dependencies from the specified extra name; may be provided more than once]:EXTRA:_default' \
|
|
'*--group=[Install the specified dependency group from a \`pylock.toml\` or \`pyproject.toml\`]:GROUP:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'-p+[The Python interpreter into which packages should be installed.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter into which packages should be installed.]:PYTHON:_default' \
|
|
'(--prefix)--target=[Install packages into the specified directory, rather than into the virtual or system Python environment. The packages will be installed at the top-level of the directory]:TARGET:_files' \
|
|
'(--target)--prefix=[Install packages into \`lib\`, \`bin\`, and other top-level folders under the specified directory, as if a virtual environment were present at that location]:PREFIX:_files' \
|
|
'(--no-build)*--no-binary=[Don'\''t install pre-built wheels]:NO_BINARY:_default' \
|
|
'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY:_default' \
|
|
'--python-version=[The minimum Python version that should be supported by the requirements (e.g., \`3.7\` or \`3.7.9\`)]:PYTHON_VERSION:_default' \
|
|
'--python-platform=[The platform for which requirements should be installed]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows"
|
|
linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux"
|
|
macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS"
|
|
x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target"
|
|
i686-pc-windows-msvc\:"A 32-bit x86 Windows target"
|
|
x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`"
|
|
aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices"
|
|
x86_64-apple-darwin\:"An x86 macOS target"
|
|
aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`"
|
|
aarch64-unknown-linux-musl\:"An ARM64 Linux target"
|
|
x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target"
|
|
x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`"
|
|
x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform"
|
|
x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform"
|
|
x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform"
|
|
x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform"
|
|
x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform"
|
|
x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform"
|
|
x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform"
|
|
x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform"
|
|
x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform"
|
|
x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform"
|
|
x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform"
|
|
x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform"
|
|
aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`"
|
|
aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform"
|
|
aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform"
|
|
aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform"
|
|
aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform"
|
|
aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform"
|
|
aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform"
|
|
aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform"
|
|
aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform"
|
|
aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform"
|
|
aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform"
|
|
aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform"
|
|
aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform"
|
|
wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \
|
|
'--torch-backend=[The backend to use when fetching packages in the PyTorch ecosystem (e.g., \`cpu\`, \`cu126\`, or \`auto\`)]:TORCH_BACKEND:((auto\:"Select the appropriate PyTorch index based on the operating system and CUDA driver version"
|
|
cpu\:"Use the CPU-only PyTorch index"
|
|
cu128\:"Use the PyTorch index for CUDA 12.8"
|
|
cu126\:"Use the PyTorch index for CUDA 12.6"
|
|
cu125\:"Use the PyTorch index for CUDA 12.5"
|
|
cu124\:"Use the PyTorch index for CUDA 12.4"
|
|
cu123\:"Use the PyTorch index for CUDA 12.3"
|
|
cu122\:"Use the PyTorch index for CUDA 12.2"
|
|
cu121\:"Use the PyTorch index for CUDA 12.1"
|
|
cu120\:"Use the PyTorch index for CUDA 12.0"
|
|
cu118\:"Use the PyTorch index for CUDA 11.8"
|
|
cu117\:"Use the PyTorch index for CUDA 11.7"
|
|
cu116\:"Use the PyTorch index for CUDA 11.6"
|
|
cu115\:"Use the PyTorch index for CUDA 11.5"
|
|
cu114\:"Use the PyTorch index for CUDA 11.4"
|
|
cu113\:"Use the PyTorch index for CUDA 11.3"
|
|
cu112\:"Use the PyTorch index for CUDA 11.2"
|
|
cu111\:"Use the PyTorch index for CUDA 11.1"
|
|
cu110\:"Use the PyTorch index for CUDA 11.0"
|
|
cu102\:"Use the PyTorch index for CUDA 10.2"
|
|
cu101\:"Use the PyTorch index for CUDA 10.1"
|
|
cu100\:"Use the PyTorch index for CUDA 10.0"
|
|
cu92\:"Use the PyTorch index for CUDA 9.2"
|
|
cu91\:"Use the PyTorch index for CUDA 9.1"
|
|
cu90\:"Use the PyTorch index for CUDA 9.0"
|
|
cu80\:"Use the PyTorch index for CUDA 8.0"
|
|
rocm6.3\:"Use the PyTorch index for ROCm 6.3"
|
|
rocm6.2.4\:"Use the PyTorch index for ROCm 6.2.4"
|
|
rocm6.2\:"Use the PyTorch index for ROCm 6.2"
|
|
rocm6.1\:"Use the PyTorch index for ROCm 6.1"
|
|
rocm6.0\:"Use the PyTorch index for ROCm 6.0"
|
|
rocm5.7\:"Use the PyTorch index for ROCm 5.7"
|
|
rocm5.6\:"Use the PyTorch index for ROCm 5.6"
|
|
rocm5.5\:"Use the PyTorch index for ROCm 5.5"
|
|
rocm5.4.2\:"Use the PyTorch index for ROCm 5.4.2"
|
|
rocm5.4\:"Use the PyTorch index for ROCm 5.4"
|
|
rocm5.3\:"Use the PyTorch index for ROCm 5.3"
|
|
rocm5.2\:"Use the PyTorch index for ROCm 5.2"
|
|
rocm5.1.1\:"Use the PyTorch index for ROCm 5.1.1"
|
|
rocm4.2\:"Use the PyTorch index for ROCm 4.2"
|
|
rocm4.1\:"Use the PyTorch index for ROCm 4.1"
|
|
rocm4.0.1\:"Use the PyTorch index for ROCm 4.0.1"
|
|
xpu\:"Use the PyTorch index for Intel XPU"))' \
|
|
'--python-executable=[]:PYTHON_EXECUTABLE:_default' \
|
|
'--cert=[]:CERT:_default' \
|
|
'--client-cert=[]:CLIENT_CERT:_default' \
|
|
'--config=[]:CONFIG:_default' \
|
|
'--pip-args=[]:PIP_ARGS:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--extra)--all-extras[Include all optional dependencies]' \
|
|
'--no-all-extras[]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'--require-hashes[Require a matching hash for each requirement]' \
|
|
'--no-require-hashes[]' \
|
|
'--verify-hashes[]' \
|
|
'--no-verify-hashes[Disable validation of hashes in the requirements file]' \
|
|
'--system[Install packages into the system Python environment]' \
|
|
'--no-system[]' \
|
|
'--break-system-packages[Allow uv to modify an \`EXTERNALLY-MANAGED\` Python installation]' \
|
|
'--no-break-system-packages[]' \
|
|
'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \
|
|
'(--no-binary --only-binary)--build[]' \
|
|
'--allow-empty-requirements[Allow sync of empty requirements, which will clear the environment of all packages]' \
|
|
'--no-allow-empty-requirements[]' \
|
|
'--strict[Validate the Python environment after completing the installation, to detect packages with missing dependencies or other issues]' \
|
|
'--no-strict[]' \
|
|
'--dry-run[Perform a dry run, i.e., don'\''t actually install anything but resolve the dependencies and print the resulting plan]' \
|
|
'-a[]' \
|
|
'--ask[]' \
|
|
'--user[]' \
|
|
'--no-config[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::src_file -- Include all packages listed in the given `requirements.txt` files:_files' \
|
|
&& ret=0
|
|
;;
|
|
(install)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'*-r+[Install all packages listed in the given \`requirements.txt\` or \`pylock.toml\` files]:REQUIREMENTS:_files' \
|
|
'*--requirements=[Install all packages listed in the given \`requirements.txt\` or \`pylock.toml\` files]:REQUIREMENTS:_files' \
|
|
'*-e+[Install the editable package based on the provided local file path]:EDITABLE:_default' \
|
|
'*--editable=[Install the editable package based on the provided local file path]:EDITABLE:_default' \
|
|
'*-c+[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--constraints=[Constrain versions using the given requirements files]:CONSTRAINTS:_default' \
|
|
'*--overrides=[Override versions using the given requirements files]:OVERRIDES:_default' \
|
|
'*-b+[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--build-constraints=[Constrain build dependencies using the given requirements files when building source distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'(--all-extras)*--extra=[Include optional dependencies from the specified extra name; may be provided more than once]:EXTRA:_default' \
|
|
'*--group=[Install the specified dependency group from a \`pylock.toml\` or \`pyproject.toml\`]:GROUP:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--reinstall-package=[Reinstall a specific package, regardless of whether it'\''s already installed. Implies \`--refresh-package\`]:REINSTALL_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for specific packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'-p+[The Python interpreter into which packages should be installed.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter into which packages should be installed.]:PYTHON:_default' \
|
|
'(--prefix)--target=[Install packages into the specified directory, rather than into the virtual or system Python environment. The packages will be installed at the top-level of the directory]:TARGET:_files' \
|
|
'(--target)--prefix=[Install packages into \`lib\`, \`bin\`, and other top-level folders under the specified directory, as if a virtual environment were present at that location]:PREFIX:_files' \
|
|
'(--no-build)*--no-binary=[Don'\''t install pre-built wheels]:NO_BINARY:_default' \
|
|
'(--no-build)*--only-binary=[Only use pre-built wheels; don'\''t build source distributions]:ONLY_BINARY:_default' \
|
|
'--python-version=[The minimum Python version that should be supported by the requirements (e.g., \`3.7\` or \`3.7.9\`)]:PYTHON_VERSION:_default' \
|
|
'--python-platform=[The platform for which requirements should be installed]:PYTHON_PLATFORM:((windows\:"An alias for \`x86_64-pc-windows-msvc\`, the default target for Windows"
|
|
linux\:"An alias for \`x86_64-unknown-linux-gnu\`, the default target for Linux"
|
|
macos\:"An alias for \`aarch64-apple-darwin\`, the default target for macOS"
|
|
x86_64-pc-windows-msvc\:"A 64-bit x86 Windows target"
|
|
i686-pc-windows-msvc\:"A 32-bit x86 Windows target"
|
|
x86_64-unknown-linux-gnu\:"An x86 Linux target. Equivalent to \`x86_64-manylinux_2_28\`"
|
|
aarch64-apple-darwin\:"An ARM-based macOS target, as seen on Apple Silicon devices"
|
|
x86_64-apple-darwin\:"An x86 macOS target"
|
|
aarch64-unknown-linux-gnu\:"An ARM64 Linux target. Equivalent to \`aarch64-manylinux_2_28\`"
|
|
aarch64-unknown-linux-musl\:"An ARM64 Linux target"
|
|
x86_64-unknown-linux-musl\:"An \`x86_64\` Linux target"
|
|
x86_64-manylinux2014\:"An \`x86_64\` target for the \`manylinux2014\` platform. Equivalent to \`x86_64-manylinux_2_17\`"
|
|
x86_64-manylinux_2_17\:"An \`x86_64\` target for the \`manylinux_2_17\` platform"
|
|
x86_64-manylinux_2_28\:"An \`x86_64\` target for the \`manylinux_2_28\` platform"
|
|
x86_64-manylinux_2_31\:"An \`x86_64\` target for the \`manylinux_2_31\` platform"
|
|
x86_64-manylinux_2_32\:"An \`x86_64\` target for the \`manylinux_2_32\` platform"
|
|
x86_64-manylinux_2_33\:"An \`x86_64\` target for the \`manylinux_2_33\` platform"
|
|
x86_64-manylinux_2_34\:"An \`x86_64\` target for the \`manylinux_2_34\` platform"
|
|
x86_64-manylinux_2_35\:"An \`x86_64\` target for the \`manylinux_2_35\` platform"
|
|
x86_64-manylinux_2_36\:"An \`x86_64\` target for the \`manylinux_2_36\` platform"
|
|
x86_64-manylinux_2_37\:"An \`x86_64\` target for the \`manylinux_2_37\` platform"
|
|
x86_64-manylinux_2_38\:"An \`x86_64\` target for the \`manylinux_2_38\` platform"
|
|
x86_64-manylinux_2_39\:"An \`x86_64\` target for the \`manylinux_2_39\` platform"
|
|
x86_64-manylinux_2_40\:"An \`x86_64\` target for the \`manylinux_2_40\` platform"
|
|
aarch64-manylinux2014\:"An ARM64 target for the \`manylinux2014\` platform. Equivalent to \`aarch64-manylinux_2_17\`"
|
|
aarch64-manylinux_2_17\:"An ARM64 target for the \`manylinux_2_17\` platform"
|
|
aarch64-manylinux_2_28\:"An ARM64 target for the \`manylinux_2_28\` platform"
|
|
aarch64-manylinux_2_31\:"An ARM64 target for the \`manylinux_2_31\` platform"
|
|
aarch64-manylinux_2_32\:"An ARM64 target for the \`manylinux_2_32\` platform"
|
|
aarch64-manylinux_2_33\:"An ARM64 target for the \`manylinux_2_33\` platform"
|
|
aarch64-manylinux_2_34\:"An ARM64 target for the \`manylinux_2_34\` platform"
|
|
aarch64-manylinux_2_35\:"An ARM64 target for the \`manylinux_2_35\` platform"
|
|
aarch64-manylinux_2_36\:"An ARM64 target for the \`manylinux_2_36\` platform"
|
|
aarch64-manylinux_2_37\:"An ARM64 target for the \`manylinux_2_37\` platform"
|
|
aarch64-manylinux_2_38\:"An ARM64 target for the \`manylinux_2_38\` platform"
|
|
aarch64-manylinux_2_39\:"An ARM64 target for the \`manylinux_2_39\` platform"
|
|
aarch64-manylinux_2_40\:"An ARM64 target for the \`manylinux_2_40\` platform"
|
|
wasm32-pyodide2024\:"A wasm32 target using the Pyodide 2024 platform. Meant for use with Python 3.12"))' \
|
|
'--torch-backend=[The backend to use when fetching packages in the PyTorch ecosystem (e.g., \`cpu\`, \`cu126\`, or \`auto\`)]:TORCH_BACKEND:((auto\:"Select the appropriate PyTorch index based on the operating system and CUDA driver version"
|
|
cpu\:"Use the CPU-only PyTorch index"
|
|
cu128\:"Use the PyTorch index for CUDA 12.8"
|
|
cu126\:"Use the PyTorch index for CUDA 12.6"
|
|
cu125\:"Use the PyTorch index for CUDA 12.5"
|
|
cu124\:"Use the PyTorch index for CUDA 12.4"
|
|
cu123\:"Use the PyTorch index for CUDA 12.3"
|
|
cu122\:"Use the PyTorch index for CUDA 12.2"
|
|
cu121\:"Use the PyTorch index for CUDA 12.1"
|
|
cu120\:"Use the PyTorch index for CUDA 12.0"
|
|
cu118\:"Use the PyTorch index for CUDA 11.8"
|
|
cu117\:"Use the PyTorch index for CUDA 11.7"
|
|
cu116\:"Use the PyTorch index for CUDA 11.6"
|
|
cu115\:"Use the PyTorch index for CUDA 11.5"
|
|
cu114\:"Use the PyTorch index for CUDA 11.4"
|
|
cu113\:"Use the PyTorch index for CUDA 11.3"
|
|
cu112\:"Use the PyTorch index for CUDA 11.2"
|
|
cu111\:"Use the PyTorch index for CUDA 11.1"
|
|
cu110\:"Use the PyTorch index for CUDA 11.0"
|
|
cu102\:"Use the PyTorch index for CUDA 10.2"
|
|
cu101\:"Use the PyTorch index for CUDA 10.1"
|
|
cu100\:"Use the PyTorch index for CUDA 10.0"
|
|
cu92\:"Use the PyTorch index for CUDA 9.2"
|
|
cu91\:"Use the PyTorch index for CUDA 9.1"
|
|
cu90\:"Use the PyTorch index for CUDA 9.0"
|
|
cu80\:"Use the PyTorch index for CUDA 8.0"
|
|
rocm6.3\:"Use the PyTorch index for ROCm 6.3"
|
|
rocm6.2.4\:"Use the PyTorch index for ROCm 6.2.4"
|
|
rocm6.2\:"Use the PyTorch index for ROCm 6.2"
|
|
rocm6.1\:"Use the PyTorch index for ROCm 6.1"
|
|
rocm6.0\:"Use the PyTorch index for ROCm 6.0"
|
|
rocm5.7\:"Use the PyTorch index for ROCm 5.7"
|
|
rocm5.6\:"Use the PyTorch index for ROCm 5.6"
|
|
rocm5.5\:"Use the PyTorch index for ROCm 5.5"
|
|
rocm5.4.2\:"Use the PyTorch index for ROCm 5.4.2"
|
|
rocm5.4\:"Use the PyTorch index for ROCm 5.4"
|
|
rocm5.3\:"Use the PyTorch index for ROCm 5.3"
|
|
rocm5.2\:"Use the PyTorch index for ROCm 5.2"
|
|
rocm5.1.1\:"Use the PyTorch index for ROCm 5.1.1"
|
|
rocm4.2\:"Use the PyTorch index for ROCm 4.2"
|
|
rocm4.1\:"Use the PyTorch index for ROCm 4.1"
|
|
rocm4.0.1\:"Use the PyTorch index for ROCm 4.0.1"
|
|
xpu\:"Use the PyTorch index for Intel XPU"))' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--extra)--all-extras[Include all optional dependencies]' \
|
|
'--no-all-extras[]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--reinstall[Reinstall all packages, regardless of whether they'\''re already installed. Implies \`--refresh\`]' \
|
|
'--no-reinstall[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--compile-bytecode[Compile Python files to bytecode after installation]' \
|
|
'--no-compile-bytecode[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'--no-deps[Ignore package dependencies, instead only installing those packages explicitly listed on the command line or in the requirements files]' \
|
|
'--deps[]' \
|
|
'--require-hashes[Require a matching hash for each requirement]' \
|
|
'--no-require-hashes[]' \
|
|
'--verify-hashes[]' \
|
|
'--no-verify-hashes[Disable validation of hashes in the requirements file]' \
|
|
'--system[Install packages into the system Python environment]' \
|
|
'--no-system[]' \
|
|
'--break-system-packages[Allow uv to modify an \`EXTERNALLY-MANAGED\` Python installation]' \
|
|
'--no-break-system-packages[]' \
|
|
'(--no-binary --only-binary)--no-build[Don'\''t build source distributions]' \
|
|
'(--no-binary --only-binary)--build[]' \
|
|
'--inexact[Do not remove extraneous packages present in the environment]' \
|
|
'--exact[Perform an exact sync, removing extraneous packages]' \
|
|
'--strict[Validate the Python environment after completing the installation, to detect packages with missing dependencies or other issues]' \
|
|
'--no-strict[]' \
|
|
'--dry-run[Perform a dry run, i.e., don'\''t actually install anything but resolve the dependencies and print the resulting plan]' \
|
|
'--disable-pip-version-check[]' \
|
|
'--user[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::package -- Install all listed packages:_default' \
|
|
&& ret=0
|
|
;;
|
|
(uninstall)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'*-r+[Uninstall all packages listed in the given requirements files]:REQUIREMENTS:_files' \
|
|
'*--requirements=[Uninstall all packages listed in the given requirements files]:REQUIREMENTS:_files' \
|
|
'-p+[The Python interpreter from which packages should be uninstalled.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter from which packages should be uninstalled.]:PYTHON:_default' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for remote requirements files]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'(--prefix)--target=[Uninstall packages from the specified \`--target\` directory]:TARGET:_files' \
|
|
'(--target)--prefix=[Uninstall packages from the specified \`--prefix\` directory]:PREFIX:_files' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--system[Use the system Python to uninstall packages]' \
|
|
'--no-system[]' \
|
|
'--break-system-packages[Allow uv to modify an \`EXTERNALLY-MANAGED\` Python installation]' \
|
|
'--no-break-system-packages[]' \
|
|
'--dry-run[Perform a dry run, i.e., don'\''t actually uninstall anything but print the resulting plan]' \
|
|
'--disable-pip-version-check[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::package -- Uninstall all listed packages:_default' \
|
|
&& ret=0
|
|
;;
|
|
(freeze)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-p+[The Python interpreter for which packages should be listed.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter for which packages should be listed.]:PYTHON:_default' \
|
|
'*--path=[Restrict to the specified installation path for listing packages (can be used multiple times)]:PATHS:_files' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--exclude-editable[Exclude any editable packages from output]' \
|
|
'--strict[Validate the Python environment, to detect packages with missing dependencies and other issues]' \
|
|
'--no-strict[]' \
|
|
'--system[List packages in the system Python environment]' \
|
|
'--no-system[]' \
|
|
'--disable-pip-version-check[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(list)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'*--exclude=[Exclude the specified package(s) from the output]:EXCLUDE:_default' \
|
|
'--format=[Select the output format]:FORMAT:((columns\:"Display the list of packages in a human-readable table"
|
|
freeze\:"Display the list of packages in a \`pip freeze\`-like format, with one package per line alongside its version"
|
|
json\:"Display the list of packages in a machine-readable JSON format"))' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'-p+[The Python interpreter for which packages should be listed.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter for which packages should be listed.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-e[Only include editable projects]' \
|
|
'--editable[Only include editable projects]' \
|
|
'(-e --editable)--exclude-editable[Exclude any editable packages from output]' \
|
|
'--outdated[List outdated packages]' \
|
|
'--no-outdated[]' \
|
|
'--strict[Validate the Python environment, to detect packages with missing dependencies and other issues]' \
|
|
'--no-strict[]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'--system[List packages in the system Python environment]' \
|
|
'--no-system[]' \
|
|
'--disable-pip-version-check[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(show)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-p+[The Python interpreter to find the package in.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to find the package in.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--strict[Validate the Python environment, to detect packages with missing dependencies and other issues]' \
|
|
'--no-strict[]' \
|
|
'-f[Show the full list of installed files for each package]' \
|
|
'--files[Show the full list of installed files for each package]' \
|
|
'--system[Show a package in the system Python environment]' \
|
|
'--no-system[]' \
|
|
'--disable-pip-version-check[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::package -- The package(s) to display:_default' \
|
|
&& ret=0
|
|
;;
|
|
(tree)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-d+[Maximum display depth of the dependency tree]:DEPTH:_default' \
|
|
'--depth=[Maximum display depth of the dependency tree]:DEPTH:_default' \
|
|
'*--prune=[Prune the given package from the display of the dependency tree]:PRUNE:_default' \
|
|
'*--package=[Display only the specified packages]:PACKAGE:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'-p+[The Python interpreter for which packages should be listed.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter for which packages should be listed.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--show-version-specifiers[Show the version constraint(s) imposed on each package]' \
|
|
'--no-dedupe[Do not de-duplicate repeated dependencies. Usually, when a package has already displayed its dependencies, further occurrences will not re-display its dependencies, and will include a (*) to indicate it has already been shown. This flag will cause those duplicates to be repeated]' \
|
|
'--invert[Show the reverse dependencies for the given package. This flag will invert the tree and display the packages that depend on the given package]' \
|
|
'--outdated[Show the latest available version of each package in the tree]' \
|
|
'--strict[Validate the Python environment, to detect packages with missing dependencies and other issues]' \
|
|
'--no-strict[]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'--system[List packages in the system Python environment]' \
|
|
'--no-system[]' \
|
|
'--disable-pip-version-check[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(check)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-p+[The Python interpreter for which packages should be checked.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter for which packages should be checked.]:PYTHON:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--system[Check packages in the system Python environment]' \
|
|
'--no-system[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
(venv)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'-p+[The Python interpreter to use for the virtual environment.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use for the virtual environment.]:PYTHON:_default' \
|
|
'--prompt=[Provide an alternative prompt prefix for the virtual environment.]:PROMPT:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--system[Ignore virtual environments when searching for the Python interpreter]' \
|
|
'--no-system[This flag is included for compatibility only, it has no effect]' \
|
|
'--no-project[Avoid discovering a project or workspace]' \
|
|
'--seed[Install seed packages (one or more of\: \`pip\`, \`setuptools\`, and \`wheel\`) into the virtual environment]' \
|
|
'-c[Remove any existing files or directories at the target path]' \
|
|
'--clear[Remove any existing files or directories at the target path]' \
|
|
'--allow-existing[Preserve any existing files or directories at the target path]' \
|
|
'--system-site-packages[Give the virtual environment access to the system site packages directory]' \
|
|
'--relocatable[Make the virtual environment relocatable]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'--no-seed[]' \
|
|
'--no-pip[]' \
|
|
'--no-setuptools[]' \
|
|
'--no-wheel[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'::path -- The path to the virtual environment to create:_files' \
|
|
&& ret=0
|
|
;;
|
|
(build)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'(--all-packages)--package=[Build a specific package in the workspace]:PACKAGE:_default' \
|
|
'-o+[The output directory to which distributions should be written]:OUT_DIR:_files' \
|
|
'--out-dir=[The output directory to which distributions should be written]:OUT_DIR:_files' \
|
|
'*-b+[Constrain build dependencies using the given requirements files when building distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'*--build-constraints=[Constrain build dependencies using the given requirements files when building distributions]:BUILD_CONSTRAINTS:_default' \
|
|
'-p+[The Python interpreter to use for the build environment.]:PYTHON:_default' \
|
|
'--python=[The Python interpreter to use for the build environment.]:PYTHON:_default' \
|
|
'*--index=[The URLs to use when resolving dependencies, in addition to the default index]:INDEX:_default' \
|
|
'--default-index=[The URL of the default package index (by default\: <https\://pypi.org/simple>)]:DEFAULT_INDEX:_default' \
|
|
'-i+[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'--index-url=[(Deprecated\: use \`--default-index\` instead) The URL of the Python package index (by default\: <https\://pypi.org/simple>)]:INDEX_URL:_default' \
|
|
'*--extra-index-url=[(Deprecated\: use \`--index\` instead) Extra URLs of package indexes to use, in addition to \`--index-url\`]:EXTRA_INDEX_URL:_default' \
|
|
'*-f+[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*--find-links=[Locations to search for candidate distributions, in addition to those found in the registry indexes]:FIND_LINKS:_default' \
|
|
'*-P+[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'*--upgrade-package=[Allow upgrades for a specific package, ignoring pinned versions in any existing output file. Implies \`--refresh-package\`]:UPGRADE_PACKAGE:_default' \
|
|
'--index-strategy=[The strategy to use when resolving against multiple index URLs]:INDEX_STRATEGY:((first-index\:"Only use results from the first index that returns a match for a given package name"
|
|
unsafe-first-match\:"Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next"
|
|
unsafe-best-match\:"Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index"))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for index URLs]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--resolution=[The strategy to use when selecting between the different compatible versions for a given package requirement]:RESOLUTION:((highest\:"Resolve the highest compatible version of each package"
|
|
lowest\:"Resolve the lowest compatible version of each package"
|
|
lowest-direct\:"Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies"))' \
|
|
'--prerelease=[The strategy to use when considering pre-release versions]:PRERELEASE:((disallow\:"Disallow all pre-release versions"
|
|
allow\:"Allow all pre-release versions"
|
|
if-necessary\:"Allow pre-release versions if all versions of a package are pre-release"
|
|
explicit\:"Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements"
|
|
if-necessary-or-explicit\:"Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements"))' \
|
|
'--fork-strategy=[The strategy to use when selecting multiple versions of a given package across Python versions and platforms]:FORK_STRATEGY:((fewest\:"Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms"
|
|
requires-python\:"Optimize for selecting latest supported version of each package, for each supported Python version"))' \
|
|
'*-C+[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-setting=[Settings to pass to the PEP 517 build backend, specified as \`KEY=VALUE\` pairs]:CONFIG_SETTING:_default' \
|
|
'*--config-settings-package=[Settings to pass to the PEP 517 build backend for a specific package, specified as \`PACKAGE\:KEY=VALUE\` pairs]:CONFIG_SETTINGS_PACKAGE:_default' \
|
|
'*--no-build-isolation-package=[Disable isolation when building source distributions for a specific package]:NO_BUILD_ISOLATION_PACKAGE:_default' \
|
|
'--exclude-newer=[Limit candidate packages to those that were uploaded prior to the given date]:EXCLUDE_NEWER:_default' \
|
|
'*--exclude-newer-package=[Limit candidate packages for a specific package to those that were uploaded prior to the given date]:EXCLUDE_NEWER_PACKAGE:_default' \
|
|
'--link-mode=[The method to use when installing packages from the global cache]:LINK_MODE:((clone\:"Clone (i.e., copy-on-write) packages from the wheel into the \`site-packages\` directory"
|
|
copy\:"Copy packages from the wheel into the \`site-packages\` directory"
|
|
hardlink\:"Hard link packages from the wheel into the \`site-packages\` directory"
|
|
symlink\:"Symbolically link packages from the wheel into the \`site-packages\` directory"))' \
|
|
'*--no-build-package=[Don'\''t build source distributions for a specific package]:NO_BUILD_PACKAGE:_default' \
|
|
'*--no-binary-package=[Don'\''t install pre-built wheels for a specific package]:NO_BINARY_PACKAGE:_default' \
|
|
'*--refresh-package=[Refresh cached data for a specific package]:REFRESH_PACKAGE:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'(--package)--all-packages[Builds all packages in the workspace]' \
|
|
'--sdist[Build a source distribution ("sdist") from the given directory]' \
|
|
'--wheel[Build a binary distribution ("wheel") from the given directory]' \
|
|
'--list[When using the uv build backend, list the files that would be included when building]' \
|
|
'--build-logs[]' \
|
|
'--no-build-logs[Hide logs from the build backend]' \
|
|
'(--list)--force-pep517[Always build through PEP 517, don'\''t use the fast path for the uv build backend]' \
|
|
'--require-hashes[Require a matching hash for each requirement]' \
|
|
'--no-require-hashes[]' \
|
|
'--verify-hashes[]' \
|
|
'--no-verify-hashes[Disable validation of hashes in the requirements file]' \
|
|
'--no-index[Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those provided via \`--find-links\`]' \
|
|
'-U[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--upgrade[Allow package upgrades, ignoring pinned versions in any existing output file. Implies \`--refresh\`]' \
|
|
'--no-upgrade[]' \
|
|
'--pre[]' \
|
|
'--no-build-isolation[Disable isolation when building source distributions]' \
|
|
'--build-isolation[]' \
|
|
'--no-sources[Ignore the \`tool.uv.sources\` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any workspace, Git, URL, or local path sources]' \
|
|
'--no-build[Don'\''t build source distributions]' \
|
|
'--build[]' \
|
|
'--no-binary[Don'\''t install pre-built wheels]' \
|
|
'--binary[]' \
|
|
'(--offline)--refresh[Refresh all cached data]' \
|
|
'(--offline)--no-refresh[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'::src -- The directory from which distributions should be built, or a source distribution archive to build into a wheel:_files' \
|
|
&& ret=0
|
|
;;
|
|
(publish)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'(--publish-url --check-url)--index=[The name of an index in the configuration to use for publishing.]:INDEX:_default' \
|
|
'-u+[The username for the upload]:USERNAME:_default' \
|
|
'--username=[The username for the upload]:USERNAME:_default' \
|
|
'-p+[The password for the upload]:PASSWORD:_default' \
|
|
'--password=[The password for the upload]:PASSWORD:_default' \
|
|
'(-u --username -p --password)-t+[The token for the upload]:TOKEN:_default' \
|
|
'(-u --username -p --password)--token=[The token for the upload]:TOKEN:_default' \
|
|
'--trusted-publishing=[Configure using trusted publishing through GitHub Actions]:TRUSTED_PUBLISHING:((automatic\:"Try trusted publishing when we'\''re already in GitHub Actions, continue if that fails"
|
|
always\:""
|
|
never\:""))' \
|
|
'--keyring-provider=[Attempt to use \`keyring\` for authentication for remote requirements files]:KEYRING_PROVIDER:((disabled\:"Do not use keyring for credential lookup"
|
|
subprocess\:"Use the \`keyring\` command for credential lookup"))' \
|
|
'--publish-url=[The URL of the upload endpoint (not the index URL)]:PUBLISH_URL:_default' \
|
|
'--check-url=[Check an index URL for existing files to skip duplicate uploads]:CHECK_URL:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--skip-existing[]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::files -- Paths to the files to upload. Accepts glob expressions:_default' \
|
|
&& ret=0
|
|
;;
|
|
(build-backend)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
":: :_uv__build-backend_commands" \
|
|
"*::: :->build-backend" \
|
|
&& ret=0
|
|
|
|
case $state in
|
|
(build-backend)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:uv-build-backend-command-$line[1]:"
|
|
case $line[1] in
|
|
(build-sdist)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
':sdist_directory:_files' \
|
|
&& ret=0
|
|
;;
|
|
(build-wheel)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--metadata-directory=[]:METADATA_DIRECTORY:_files' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
':wheel_directory:_files' \
|
|
&& ret=0
|
|
;;
|
|
(build-editable)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--metadata-directory=[]:METADATA_DIRECTORY:_files' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
':wheel_directory:_files' \
|
|
&& ret=0
|
|
;;
|
|
(get-requires-for-build-sdist)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(get-requires-for-build-wheel)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(prepare-metadata-for-build-wheel)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
':wheel_directory:_files' \
|
|
&& ret=0
|
|
;;
|
|
(get-requires-for-build-editable)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(prepare-metadata-for-build-editable)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
':wheel_directory:_files' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
(cache)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
":: :_uv__cache_commands" \
|
|
"*::: :->cache" \
|
|
&& ret=0
|
|
|
|
case $state in
|
|
(cache)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:uv-cache-command-$line[1]:"
|
|
case $line[1] in
|
|
(clean)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::package -- The packages to remove from the cache:_default' \
|
|
&& ret=0
|
|
;;
|
|
(prune)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--ci[Optimize the cache for persistence in a continuous integration environment, like GitHub Actions]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
(dir)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
(self)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
":: :_uv__self_commands" \
|
|
"*::: :->self" \
|
|
&& ret=0
|
|
|
|
case $state in
|
|
(self)
|
|
words=($line[1] "${words[@]}")
|
|
(( CURRENT += 1 ))
|
|
curcontext="${curcontext%:*:*}:uv-self-command-$line[1]:"
|
|
case $line[1] in
|
|
(update)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--token=[A GitHub token for authentication. A token is not required but can be used to reduce the chance of encountering rate limits]:TOKEN:_default' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--dry-run[Run without performing the update]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'::target_version -- Update to the specified version. If not provided, uv will update to the latest version:_default' \
|
|
&& ret=0
|
|
;;
|
|
(version)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--output-format=[]:OUTPUT_FORMAT:((text\:"Display the version as plain text"
|
|
json\:"Display the version as JSON"))' \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--short[Only print the version]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
;;
|
|
(clean)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::package -- The packages to remove from the cache:_default' \
|
|
&& ret=0
|
|
;;
|
|
(generate-shell-completion)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'(--no-color)--color=[]:COLOR:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'--config-file=[]:CONFIG_FILE:_files' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'-n[]' \
|
|
'--no-cache[]' \
|
|
'--no-python-downloads[]' \
|
|
'(-v --verbose)*-q[]' \
|
|
'(-v --verbose)*--quiet[]' \
|
|
'(-q --quiet)*-v[]' \
|
|
'(-q --quiet)*--verbose[]' \
|
|
'--native-tls[]' \
|
|
'--offline[]' \
|
|
'--no-progress[]' \
|
|
'--no-config[]' \
|
|
'-h[]' \
|
|
'--help[]' \
|
|
'-V[]' \
|
|
'--version[]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--no-native-tls[]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
':shell -- The shell to generate the completion script for:(bash elvish fish nushell powershell zsh)' \
|
|
&& ret=0
|
|
;;
|
|
(help)
|
|
_arguments "${_arguments_options[@]}" : \
|
|
'--cache-dir=[Path to the cache directory]:CACHE_DIR:_files' \
|
|
'--python-preference=[]:PYTHON_PREFERENCE:((only-managed\:"Only use managed Python installations; never use system Python installations"
|
|
managed\:"Prefer managed Python installations over system Python installations"
|
|
system\:"Prefer system Python installations over managed Python installations"
|
|
only-system\:"Only use system Python installations; never use managed Python installations"))' \
|
|
'--python-fetch=[Deprecated version of \[\`Self\:\:python_downloads\`\]]:PYTHON_FETCH:((automatic\:"Automatically download managed Python installations when needed"
|
|
manual\:"Do not automatically download managed Python installations; require explicit installation"
|
|
never\:"Do not ever allow Python downloads"))' \
|
|
'(--no-color)--color=[Control the use of color in output]:COLOR_CHOICE:((auto\:"Enables colored output only when the output is going to a terminal or TTY with support"
|
|
always\:"Enables colored output regardless of the detected environment"
|
|
never\:"Disables colored output"))' \
|
|
'*--allow-insecure-host=[Allow insecure connections to a host]:ALLOW_INSECURE_HOST:_default' \
|
|
'*--preview-features=[Enable experimental preview features]:PREVIEW_FEATURES:_default' \
|
|
'--directory=[Change to the given directory prior to running the command]:DIRECTORY:_files' \
|
|
'--project=[Run the command within the given project directory]:PROJECT:_files' \
|
|
'--config-file=[The path to a \`uv.toml\` file to use for configuration]:CONFIG_FILE:_files' \
|
|
'--no-pager[Disable pager when printing help]' \
|
|
'-n[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'--no-cache[Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation]' \
|
|
'(--python-preference)--managed-python[Require use of uv-managed Python versions]' \
|
|
'(--python-preference)--no-managed-python[Disable use of uv-managed Python versions]' \
|
|
'--allow-python-downloads[Allow automatically downloading Python when required. \[env\: "UV_PYTHON_DOWNLOADS=auto"\]]' \
|
|
'--no-python-downloads[Disable automatic downloads of Python. \[env\: "UV_PYTHON_DOWNLOADS=never"\]]' \
|
|
'(-v --verbose)*-q[Use quiet output]' \
|
|
'(-v --verbose)*--quiet[Use quiet output]' \
|
|
'(-q --quiet)*-v[Use verbose output]' \
|
|
'(-q --quiet)*--verbose[Use verbose output]' \
|
|
'(--color)--no-color[Disable colors]' \
|
|
'--native-tls[Whether to load TLS certificates from the platform'\''s native certificate store]' \
|
|
'--no-native-tls[]' \
|
|
'--offline[Disable network access]' \
|
|
'--no-offline[]' \
|
|
'--preview[Whether to enable all experimental preview features]' \
|
|
'--no-preview[]' \
|
|
'--isolated[Avoid discovering a \`pyproject.toml\` or \`uv.toml\` file]' \
|
|
'--show-settings[Show the resolved settings for the current command]' \
|
|
'--no-progress[Hide all progress outputs]' \
|
|
'--no-installer-metadata[Skip writing \`uv\` installer metadata files (e.g., \`INSTALLER\`, \`REQUESTED\`, and \`direct_url.json\`) to site-packages \`.dist-info\` directories]' \
|
|
'--no-config[Avoid discovering configuration files (\`pyproject.toml\`, \`uv.toml\`)]' \
|
|
'-h[Display the concise help for this command]' \
|
|
'--help[Display the concise help for this command]' \
|
|
'*::command:_default' \
|
|
&& ret=0
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|
|
}
|
|
|
|
(( $+functions[_uv_commands] )) ||
|
|
_uv_commands() {
|
|
local commands; commands=(
|
|
'run:Run a command or script' \
|
|
'init:Create a new project' \
|
|
'add:Add dependencies to the project' \
|
|
'remove:Remove dependencies from the project' \
|
|
'version:Read or update the project'\''s version' \
|
|
'sync:Update the project'\''s environment' \
|
|
'lock:Update the project'\''s lockfile' \
|
|
'export:Export the project'\''s lockfile to an alternate format' \
|
|
'tree:Display the project'\''s dependency tree' \
|
|
'tool:Run and install commands provided by Python packages' \
|
|
'python:Manage Python versions and installations' \
|
|
'pip:Manage Python packages with a pip-compatible interface' \
|
|
'venv:Create a virtual environment' \
|
|
'build:Build Python packages into source distributions and wheels' \
|
|
'publish:Upload distributions to an index' \
|
|
'build-backend:The implementation of the build backend' \
|
|
'cache:Manage uv'\''s cache' \
|
|
'self:Manage the uv executable' \
|
|
'clean:Clear the cache, removing all entries or those linked to specific packages' \
|
|
'generate-shell-completion:Generate shell completion' \
|
|
'help:Display documentation for a command' \
|
|
)
|
|
_describe -t commands 'uv commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__add_commands] )) ||
|
|
_uv__add_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv add commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build_commands] )) ||
|
|
_uv__build_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend_commands] )) ||
|
|
_uv__build-backend_commands() {
|
|
local commands; commands=(
|
|
'build-sdist:PEP 517 hook \`build_sdist\`' \
|
|
'build-wheel:PEP 517 hook \`build_wheel\`' \
|
|
'build-editable:PEP 660 hook \`build_editable\`' \
|
|
'get-requires-for-build-sdist:PEP 517 hook \`get_requires_for_build_sdist\`' \
|
|
'get-requires-for-build-wheel:PEP 517 hook \`get_requires_for_build_wheel\`' \
|
|
'prepare-metadata-for-build-wheel:PEP 517 hook \`prepare_metadata_for_build_wheel\`' \
|
|
'get-requires-for-build-editable:PEP 660 hook \`get_requires_for_build_editable\`' \
|
|
'prepare-metadata-for-build-editable:PEP 660 hook \`prepare_metadata_for_build_editable\`' \
|
|
)
|
|
_describe -t commands 'uv build-backend commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend__build-editable_commands] )) ||
|
|
_uv__build-backend__build-editable_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build-backend build-editable commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend__build-sdist_commands] )) ||
|
|
_uv__build-backend__build-sdist_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build-backend build-sdist commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend__build-wheel_commands] )) ||
|
|
_uv__build-backend__build-wheel_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build-backend build-wheel commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend__get-requires-for-build-editable_commands] )) ||
|
|
_uv__build-backend__get-requires-for-build-editable_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build-backend get-requires-for-build-editable commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend__get-requires-for-build-sdist_commands] )) ||
|
|
_uv__build-backend__get-requires-for-build-sdist_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build-backend get-requires-for-build-sdist commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend__get-requires-for-build-wheel_commands] )) ||
|
|
_uv__build-backend__get-requires-for-build-wheel_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build-backend get-requires-for-build-wheel commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend__prepare-metadata-for-build-editable_commands] )) ||
|
|
_uv__build-backend__prepare-metadata-for-build-editable_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build-backend prepare-metadata-for-build-editable commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__build-backend__prepare-metadata-for-build-wheel_commands] )) ||
|
|
_uv__build-backend__prepare-metadata-for-build-wheel_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv build-backend prepare-metadata-for-build-wheel commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__cache_commands] )) ||
|
|
_uv__cache_commands() {
|
|
local commands; commands=(
|
|
'clean:Clear the cache, removing all entries or those linked to specific packages' \
|
|
'prune:Prune all unreachable objects from the cache' \
|
|
'dir:Show the cache directory' \
|
|
)
|
|
_describe -t commands 'uv cache commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__cache__clean_commands] )) ||
|
|
_uv__cache__clean_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv cache clean commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__cache__dir_commands] )) ||
|
|
_uv__cache__dir_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv cache dir commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__cache__prune_commands] )) ||
|
|
_uv__cache__prune_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv cache prune commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__clean_commands] )) ||
|
|
_uv__clean_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv clean commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__export_commands] )) ||
|
|
_uv__export_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv export commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__generate-shell-completion_commands] )) ||
|
|
_uv__generate-shell-completion_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv generate-shell-completion commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__help_commands] )) ||
|
|
_uv__help_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv help commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__init_commands] )) ||
|
|
_uv__init_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv init commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__lock_commands] )) ||
|
|
_uv__lock_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv lock commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip_commands] )) ||
|
|
_uv__pip_commands() {
|
|
local commands; commands=(
|
|
'compile:Compile a \`requirements.in\` file to a \`requirements.txt\` or \`pylock.toml\` file' \
|
|
'sync:Sync an environment with a \`requirements.txt\` or \`pylock.toml\` file' \
|
|
'install:Install packages into an environment' \
|
|
'uninstall:Uninstall packages from an environment' \
|
|
'freeze:List, in requirements format, packages installed in an environment' \
|
|
'list:List, in tabular format, packages installed in an environment' \
|
|
'show:Show information about one or more installed packages' \
|
|
'tree:Display the dependency tree for an environment' \
|
|
'check:Verify installed packages have compatible dependencies' \
|
|
)
|
|
_describe -t commands 'uv pip commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__check_commands] )) ||
|
|
_uv__pip__check_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip check commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__compile_commands] )) ||
|
|
_uv__pip__compile_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip compile commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__freeze_commands] )) ||
|
|
_uv__pip__freeze_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip freeze commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__install_commands] )) ||
|
|
_uv__pip__install_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip install commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__list_commands] )) ||
|
|
_uv__pip__list_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip list commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__show_commands] )) ||
|
|
_uv__pip__show_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip show commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__sync_commands] )) ||
|
|
_uv__pip__sync_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip sync commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__tree_commands] )) ||
|
|
_uv__pip__tree_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip tree commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__pip__uninstall_commands] )) ||
|
|
_uv__pip__uninstall_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv pip uninstall commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__publish_commands] )) ||
|
|
_uv__publish_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv publish commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python_commands] )) ||
|
|
_uv__python_commands() {
|
|
local commands; commands=(
|
|
'list:List the available Python installations' \
|
|
'install:Download and install Python versions' \
|
|
'upgrade:Upgrade installed Python versions' \
|
|
'find:Search for a Python installation' \
|
|
'pin:Pin to a specific Python version' \
|
|
'dir:Show the uv Python installation directory' \
|
|
'uninstall:Uninstall Python versions' \
|
|
'update-shell:Ensure that the Python executable directory is on the \`PATH\`' \
|
|
)
|
|
_describe -t commands 'uv python commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python__dir_commands] )) ||
|
|
_uv__python__dir_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv python dir commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python__find_commands] )) ||
|
|
_uv__python__find_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv python find commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python__install_commands] )) ||
|
|
_uv__python__install_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv python install commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python__list_commands] )) ||
|
|
_uv__python__list_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv python list commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python__pin_commands] )) ||
|
|
_uv__python__pin_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv python pin commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python__uninstall_commands] )) ||
|
|
_uv__python__uninstall_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv python uninstall commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python__update-shell_commands] )) ||
|
|
_uv__python__update-shell_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv python update-shell commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__python__upgrade_commands] )) ||
|
|
_uv__python__upgrade_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv python upgrade commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__remove_commands] )) ||
|
|
_uv__remove_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv remove commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__run_commands] )) ||
|
|
_uv__run_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv run commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__self_commands] )) ||
|
|
_uv__self_commands() {
|
|
local commands; commands=(
|
|
'update:Update uv' \
|
|
'version:Display uv'\''s version' \
|
|
)
|
|
_describe -t commands 'uv self commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__self__update_commands] )) ||
|
|
_uv__self__update_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv self update commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__self__version_commands] )) ||
|
|
_uv__self__version_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv self version commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__sync_commands] )) ||
|
|
_uv__sync_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv sync commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool_commands] )) ||
|
|
_uv__tool_commands() {
|
|
local commands; commands=(
|
|
'run:Run a command provided by a Python package' \
|
|
'uvx:Run a command provided by a Python package.' \
|
|
'install:Install commands provided by a Python package' \
|
|
'upgrade:Upgrade installed tools' \
|
|
'list:List installed tools' \
|
|
'uninstall:Uninstall a tool' \
|
|
'update-shell:Ensure that the tool executable directory is on the \`PATH\`' \
|
|
'dir:Show the path to the uv tools directory' \
|
|
)
|
|
_describe -t commands 'uv tool commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool__dir_commands] )) ||
|
|
_uv__tool__dir_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tool dir commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool__install_commands] )) ||
|
|
_uv__tool__install_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tool install commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool__list_commands] )) ||
|
|
_uv__tool__list_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tool list commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool__run_commands] )) ||
|
|
_uv__tool__run_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tool run commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool__uninstall_commands] )) ||
|
|
_uv__tool__uninstall_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tool uninstall commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool__update-shell_commands] )) ||
|
|
_uv__tool__update-shell_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tool update-shell commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool__upgrade_commands] )) ||
|
|
_uv__tool__upgrade_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tool upgrade commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tool__uvx_commands] )) ||
|
|
_uv__tool__uvx_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tool uvx commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__tree_commands] )) ||
|
|
_uv__tree_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv tree commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__venv_commands] )) ||
|
|
_uv__venv_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv venv commands' commands "$@"
|
|
}
|
|
(( $+functions[_uv__version_commands] )) ||
|
|
_uv__version_commands() {
|
|
local commands; commands=()
|
|
_describe -t commands 'uv version commands' commands "$@"
|
|
}
|
|
|
|
if [ "$funcstack[1]" = "_uv" ]; then
|
|
_uv "$@"
|
|
else
|
|
compdef _uv uv
|
|
fi
|