diff --git a/CHANGELOG.md b/CHANGELOG.md index 45c60bba5..330efb5fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,7 +69,7 @@ ### Enhancements -- Accept `--build-constraints` in `uv build` ([#7085](https://github.com/astral-sh/uv/pull/7085)) +- Accept `--build-constraint` in `uv build` ([#7085](https://github.com/astral-sh/uv/pull/7085)) - Add `--require-hashes` and `--verify-hashes` to `uv build` ([#7094](https://github.com/astral-sh/uv/pull/7094)) - Add `--show-version-specifiers` to `uv tool list` ([#7050](https://github.com/astral-sh/uv/pull/7050)) - Respect hashes in constraints files ([#7093](https://github.com/astral-sh/uv/pull/7093)) diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index daf02811e..fb7c3a611 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -1998,7 +1998,7 @@ pub struct BuildArgs { /// Require a matching hash for each build requirement. /// /// Hash-checking mode is all or nothing. If enabled, _all_ build requirements must be provided - /// with a corresponding hash or set of hashes via the `--build-constraints` argument. + /// with a corresponding hash or set of hashes via the `--build-constraint` argument. /// Additionally, if enabled, _all_ requirements must either be pinned to exact versions /// (e.g., `==1.0.0`), or be specified via direct URL. /// diff --git a/docs/concepts/projects.md b/docs/concepts/projects.md index 96c4ae167..6f7108314 100644 --- a/docs/concepts/projects.md +++ b/docs/concepts/projects.md @@ -588,7 +588,7 @@ You can limit `uv build` to building a source distribution with `uv build --sdis distribution with `uv build --wheel`, or build both distributions from source with `uv build --sdist --wheel`. -`uv build` accepts `--build-constraints`, which can be used to constrain the versions of any build +`uv build` accepts `--build-constraint`, which can be used to constrain the versions of any build requirements during the build process. When coupled with `--require-hashes`, uv will enforce that the requirement used to build the project match specific, known hashes, for reproducibility. @@ -602,7 +602,7 @@ Running the following would build the project with the specified version of `set that the downloaded `setuptools` distribution matches the specified hash: ```console -$ uv build --build-constraints constraints.txt --require-hashes +$ uv build --build-constraint constraints.txt --require-hashes ``` ## Build isolation diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 4a8b8ba80..b8613fe87 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -6454,7 +6454,7 @@ uv build [OPTIONS] [SRC]
--require-hashesRequire a matching hash for each build requirement.
-Hash-checking mode is all or nothing. If enabled, all build requirements must be provided with a corresponding hash or set of hashes via the --build-constraints argument. Additionally, if enabled, all requirements must either be pinned to exact versions (e.g., ==1.0.0), or be specified via direct URL.
Hash-checking mode is all or nothing. If enabled, all build requirements must be provided with a corresponding hash or set of hashes via the --build-constraint argument. Additionally, if enabled, all requirements must either be pinned to exact versions (e.g., ==1.0.0), or be specified via direct URL.
Hash-checking mode introduces a number of additional constraints: