Add --no-create-gitignore to uv build (#16369)

Fixes #16332
This commit is contained in:
konsti 2025-10-28 13:25:31 +01:00 committed by GitHub
parent c279b4ab54
commit cfa1de311e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 86 additions and 11 deletions

View file

@ -2639,6 +2639,16 @@ pub struct BuildArgs {
#[arg(long)]
pub clear: bool,
#[arg(long, overrides_with("no_create_gitignore"), hide = true)]
pub create_gitignore: bool,
/// Do not create a `.gitignore` file in the output directory.
///
/// By default, uv creates a `.gitignore` file in the output directory to exclude build
/// artifacts from version control. When this flag is used, the file will be omitted.
#[arg(long, overrides_with("create_gitignore"))]
pub no_create_gitignore: bool,
/// Constrain build dependencies using the given requirements files when building distributions.
///
/// Constraints files are `requirements.txt`-like files that only control the _version_ of a