Unhide uv from --build-backend options (#14939)

Closes https://github.com/astral-sh/uv/issues/14921
This commit is contained in:
Zanie Blue 2025-07-28 08:26:23 -05:00 committed by GitHub
parent 8cd8c95071
commit c97d12bcf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

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

View file

@ -304,6 +304,7 @@ uv init [OPTIONS] [PATH]
<p>Implicitly sets <code>--package</code>.</p> <p>Implicitly sets <code>--package</code>.</p>
<p>May also be set with the <code>UV_INIT_BUILD_BACKEND</code> environment variable.</p><p>Possible values:</p> <p>May also be set with the <code>UV_INIT_BUILD_BACKEND</code> environment variable.</p><p>Possible values:</p>
<ul> <ul>
<li><code>uv</code>: Use uv as the project build backend</li>
<li><code>hatch</code>: Use <a href="https://pypi.org/project/hatchling">hatchling</a> as the project build backend</li> <li><code>hatch</code>: Use <a href="https://pypi.org/project/hatchling">hatchling</a> as the project build backend</li>
<li><code>flit</code>: Use <a href="https://pypi.org/project/flit-core">flit-core</a> as the project build backend</li> <li><code>flit</code>: Use <a href="https://pypi.org/project/flit-core">flit-core</a> as the project build backend</li>
<li><code>pdm</code>: Use <a href="https://pypi.org/project/pdm-backend">pdm-backend</a> as the project build backend</li> <li><code>pdm</code>: Use <a href="https://pypi.org/project/pdm-backend">pdm-backend</a> as the project build backend</li>