mirror of https://github.com/astral-sh/uv
Unhide `uv` from `--build-backend` options (#14939)
Closes https://github.com/astral-sh/uv/issues/14921
This commit is contained in:
parent
8cd8c95071
commit
c97d12bcf3
|
|
@ -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")]
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue