Skip to content

Commit

Permalink
Allow UV_PRERELEASE to be set via environment variable (#2240)
Browse files Browse the repository at this point in the history
## Summary

This is useful as it tends to be "system-wide" configuration, and
configuration that differs from pip. See
#1641 (comment).
  • Loading branch information
charliermarsh authored Mar 6, 2024
1 parent 791207c commit e7d126e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/uv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ struct PipCompileArgs {
#[clap(long, value_enum, default_value_t = ResolutionMode::default())]
resolution: ResolutionMode,

#[clap(long, value_enum, default_value_t = PreReleaseMode::default(), conflicts_with = "pre")]
#[clap(long, value_enum, default_value_t = PreReleaseMode::default(), conflicts_with = "pre", env = "UV_PRERELEASE")]
prerelease: PreReleaseMode,

#[clap(long, hide = true, conflicts_with = "prerelease")]
Expand Down Expand Up @@ -697,7 +697,7 @@ struct PipInstallArgs {
#[clap(long, value_enum, default_value_t = ResolutionMode::default())]
resolution: ResolutionMode,

#[clap(long, value_enum, default_value_t = PreReleaseMode::default(), conflicts_with = "pre")]
#[clap(long, value_enum, default_value_t = PreReleaseMode::default(), conflicts_with = "pre", env = "UV_PRERELEASE")]
prerelease: PreReleaseMode,

#[clap(long, hide = true, conflicts_with = "prerelease")]
Expand Down

0 comments on commit e7d126e

Please sign in to comment.