From 1cf8cd1d8721932c547d21dbf8481a442c4e31f5 Mon Sep 17 00:00:00 2001 From: Elijah Hartvigsen Date: Wed, 23 Jul 2025 21:31:15 +0200 Subject: [PATCH 1/3] doc-typos: fix typos in settings doc Fixes the typos mentioned in #14845. Checked and didn't find any similar stragglers --- docs/reference/settings.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/settings.md b/docs/reference/settings.md index 55d3f8ae43546..ff1ec33ce8bc4 100644 --- a/docs/reference/settings.md +++ b/docs/reference/settings.md @@ -425,7 +425,7 @@ data files are included by placing them in the Python module instead of using da with this package as build requirement use the include directory to find additional header files. - `purelib` and `platlib`: Installed to the `site-packages` directory. It is not recommended - to uses these two options. + to use these two options. **Default value**: `{}` @@ -435,7 +435,7 @@ data files are included by placing them in the Python module instead of using da ```toml title="pyproject.toml" [tool.uv.build-backend] -data = { "headers": "include/headers", "scripts": "bin" } +data = { "headers" = "include/headers", "scripts" = "bin" } ``` --- From 9065afbceeed99940c5a65a3f76edf9daa26d361 Mon Sep 17 00:00:00 2001 From: konstin Date: Thu, 24 Jul 2025 11:39:25 +0200 Subject: [PATCH 2/3] Fix in option annotation --- crates/uv-build-backend/src/settings.rs | 2 +- docs/reference/settings.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv-build-backend/src/settings.rs b/crates/uv-build-backend/src/settings.rs index 9e9e44961a55d..beb42e4498372 100644 --- a/crates/uv-build-backend/src/settings.rs +++ b/crates/uv-build-backend/src/settings.rs @@ -165,7 +165,7 @@ pub struct BuildBackendSettings { #[option( default = r#"{}"#, value_type = "dict[str, str]", - example = r#"data = { "headers": "include/headers", "scripts": "bin" }"# + example = r#"data = { headers = "include/headers", scripts = "bin" }"# )] pub data: WheelDataIncludes, } diff --git a/docs/reference/settings.md b/docs/reference/settings.md index ff1ec33ce8bc4..a5c0c9c42e3b9 100644 --- a/docs/reference/settings.md +++ b/docs/reference/settings.md @@ -425,7 +425,7 @@ data files are included by placing them in the Python module instead of using da with this package as build requirement use the include directory to find additional header files. - `purelib` and `platlib`: Installed to the `site-packages` directory. It is not recommended - to use these two options. + to uses these two options. **Default value**: `{}` @@ -435,7 +435,7 @@ data files are included by placing them in the Python module instead of using da ```toml title="pyproject.toml" [tool.uv.build-backend] -data = { "headers" = "include/headers", "scripts" = "bin" } +data = { headers = "include/headers", scripts = "bin" } ``` --- From 4f133b68a610f23d8dad30fa43f0ea58b8bc93dd Mon Sep 17 00:00:00 2001 From: konstin Date: Thu, 24 Jul 2025 11:40:29 +0200 Subject: [PATCH 3/3] Fix in docstring --- crates/uv-build-backend/src/settings.rs | 2 +- docs/reference/settings.md | 2 +- uv.schema.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv-build-backend/src/settings.rs b/crates/uv-build-backend/src/settings.rs index beb42e4498372..33e6d8c458b1a 100644 --- a/crates/uv-build-backend/src/settings.rs +++ b/crates/uv-build-backend/src/settings.rs @@ -155,7 +155,7 @@ pub struct BuildBackendSettings { /// with this package as build requirement use the include directory to find additional header /// files. /// - `purelib` and `platlib`: Installed to the `site-packages` directory. It is not recommended - /// to uses these two options. + /// to use these two options. // TODO(konsti): We should show a flat example instead. // ```toml // [tool.uv.build-backend.data] diff --git a/docs/reference/settings.md b/docs/reference/settings.md index a5c0c9c42e3b9..6469a584ba4e4 100644 --- a/docs/reference/settings.md +++ b/docs/reference/settings.md @@ -425,7 +425,7 @@ data files are included by placing them in the Python module instead of using da with this package as build requirement use the include directory to find additional header files. - `purelib` and `platlib`: Installed to the `site-packages` directory. It is not recommended - to uses these two options. + to use these two options. **Default value**: `{}` diff --git a/uv.schema.json b/uv.schema.json index d8346aab1e64a..7ca04d4f89b18 100644 --- a/uv.schema.json +++ b/uv.schema.json @@ -659,7 +659,7 @@ "type": "object", "properties": { "data": { - "description": "Data includes for wheels.\n\nEach entry is a directory, whose contents are copied to the matching directory in the wheel\nin `-.data/(purelib|platlib|headers|scripts|data)`. Upon installation, this\ndata is moved to its target location, as defined by\n. Usually, small\ndata files are included by placing them in the Python module instead of using data includes.\n\n- `scripts`: Installed to the directory for executables, `/bin` on Unix or\n `\\Scripts` on Windows. This directory is added to `PATH` when the virtual\n environment is activated or when using `uv run`, so this data type can be used to install\n additional binaries. Consider using `project.scripts` instead for Python entrypoints.\n- `data`: Installed over the virtualenv environment root.\n\n Warning: This may override existing files!\n\n- `headers`: Installed to the include directory. Compilers building Python packages\n with this package as build requirement use the include directory to find additional header\n files.\n- `purelib` and `platlib`: Installed to the `site-packages` directory. It is not recommended\n to uses these two options.", + "description": "Data includes for wheels.\n\nEach entry is a directory, whose contents are copied to the matching directory in the wheel\nin `-.data/(purelib|platlib|headers|scripts|data)`. Upon installation, this\ndata is moved to its target location, as defined by\n. Usually, small\ndata files are included by placing them in the Python module instead of using data includes.\n\n- `scripts`: Installed to the directory for executables, `/bin` on Unix or\n `\\Scripts` on Windows. This directory is added to `PATH` when the virtual\n environment is activated or when using `uv run`, so this data type can be used to install\n additional binaries. Consider using `project.scripts` instead for Python entrypoints.\n- `data`: Installed over the virtualenv environment root.\n\n Warning: This may override existing files!\n\n- `headers`: Installed to the include directory. Compilers building Python packages\n with this package as build requirement use the include directory to find additional header\n files.\n- `purelib` and `platlib`: Installed to the `site-packages` directory. It is not recommended\n to use these two options.", "allOf": [ { "$ref": "#/definitions/WheelDataIncludes"