Add uv-build and uv_build aliases to uv init --build-backend (#12776)

This matches similar aliases for pdm/pdm-backend and hatch/hatchling.
This commit is contained in:
konsti 2025-04-09 14:33:38 +02:00 committed by GitHub
parent d99983a630
commit 173d6f73d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,10 @@
#[cfg_attr(feature = "clap", derive(clap::ValueEnum))]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum ProjectBuildBackend {
#[cfg_attr(feature = "clap", value(hide = true))]
#[cfg_attr(
feature = "clap",
value(alias = "uv-build", alias = "uv_build", hide = true)
)]
#[cfg_attr(feature = "schemars", schemars(skip))]
/// Use uv as the project build backend.
Uv,