Skip to content

Commit

Permalink
Add aliases for build backend requests
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Nov 20, 2024
1 parent c62c83c commit aebd800
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/uv-configuration/src/project_build_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub enum ProjectBuildBackend {
#[default]
#[serde(alias = "hatchling")]
#[value(alias = "hatchling")]
/// Use [hatchling](https://pypi.org/project/hatchling) as the project build backend.
Hatch,
/// Use [flit-core](https://pypi.org/project/flit-core) as the project build backend.
#[serde(alias = "flit-core")]
#[value(alias = "flit-core")]
Flit,
/// Use [pdm-backend](https://pypi.org/project/pdm-backend) as the project build backend.
#[serde(alias = "pdm-backend")]
#[value(alias = "pdm-backend")]
PDM,
/// Use [setuptools](https://pypi.org/project/setuptools) as the project build backend.
Setuptools,
/// Use [maturin](https://pypi.org/project/maturin) as the project build backend.
Maturin,
/// Use [scikit-build-core](https://pypi.org/project/scikit-build-core) as the project build backend.
#[serde(alias = "scikit-build", alias = "scikit-build-core")]
#[value(alias = "scikit-build", alias = "scikit-build-core")]
Scikit,
}

0 comments on commit aebd800

Please sign in to comment.