Add support for `UV_EXTRA_INDEX_URL` (#1515)

Closes https://github.com/astral-sh/uv/issues/1450
This commit is contained in:
Zanie Blue 2024-02-16 12:54:58 -06:00 committed by GitHub
parent 2ea44d863a
commit d5e8531ae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@ pub(crate) struct ResolveCliArgs {
exclude_newer: Option<DateTime<Utc>>,
#[clap(long, short, default_value = IndexUrl::Pypi.as_str(), env = "UV_INDEX_URL")]
index_url: IndexUrl,
#[clap(long)]
#[clap(long, env = "UV_EXTRA_INDEX_URL")]
extra_index_url: Vec<IndexUrl>,
#[clap(long)]
find_links: Vec<FlatIndexLocation>,

View File

@ -238,7 +238,7 @@ struct PipCompileArgs {
index_url: IndexUrl,
/// Extra URLs of package indexes to use, in addition to `--index-url`.
#[clap(long)]
#[clap(long, env = "UV_EXTRA_INDEX_URL")]
extra_index_url: Vec<IndexUrl>,
/// Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those
@ -362,7 +362,7 @@ struct PipSyncArgs {
index_url: IndexUrl,
/// Extra URLs of package indexes to use, in addition to `--index-url`.
#[clap(long)]
#[clap(long, env = "UV_EXTRA_INDEX_URL")]
extra_index_url: Vec<IndexUrl>,
/// Locations to search for candidate distributions, beyond those found in the indexes.
@ -527,7 +527,7 @@ struct PipInstallArgs {
index_url: IndexUrl,
/// Extra URLs of package indexes to use, in addition to `--index-url`.
#[clap(long)]
#[clap(long, env = "UV_EXTRA_INDEX_URL")]
extra_index_url: Vec<IndexUrl>,
/// Locations to search for candidate distributions, beyond those found in the indexes.
@ -656,7 +656,7 @@ struct VenvArgs {
index_url: IndexUrl,
/// Extra URLs of package indexes to use, in addition to `--index-url`.
#[clap(long)]
#[clap(long, env = "UV_EXTRA_INDEX_URL")]
extra_index_url: Vec<IndexUrl>,
/// Ignore the registry index (e.g., PyPI), instead relying on direct URL dependencies and those