Skip to content

Commit

Permalink
Build backend: Add --list option
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Dec 3, 2024
1 parent 8b02d71 commit bfc7af9
Show file tree
Hide file tree
Showing 7 changed files with 555 additions and 177 deletions.
13 changes: 12 additions & 1 deletion crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2171,6 +2171,17 @@ pub struct BuildArgs {
#[arg(long)]
pub wheel: bool,

/// When using the uv build backend, list the files that would be included when building.
///
/// Skips building the actual distribution, except when the source distribution is needed to
/// build the wheel.
///
/// This option can be combined with `--sdist` and `--wheel` for inspecting different build
/// paths.
// Hidden while in preview.
#[arg(long, hide = true)]
pub list: bool,

#[arg(long, overrides_with("no_build_logs"), hide = true)]
pub build_logs: bool,

Expand All @@ -2183,7 +2194,7 @@ pub struct BuildArgs {
/// By default, uv won't create a PEP 517 build environment for packages using the uv build
/// backend, but use a fast path that calls into the build backend directly. This option forces
/// always using PEP 517.
#[arg(long)]
#[arg(long, conflicts_with = "list")]
pub force_pep517: bool,

/// Constrain build dependencies using the given requirements files when building
Expand Down
Loading

0 comments on commit bfc7af9

Please sign in to comment.