mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-12 11:32:02 +00:00
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
2 changed files with 2 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue