uv/scripts/packages/built-by-uv
konsti 9460398371
Build backend: Support data files (#9197)
Allow including data files in wheels, configured through
`pyproject.toml`. This configuration is currently only read in the build
backend. We'd only start using it in the frontend when we're adding a
fast path.

Each data entry is a directory, whose contents are copied to the
matching directory in the wheel in
`<name>-<version>.data/(purelib|platlib|headers|scripts|data)`. Upon
installation, this data is moved to its target location, as defined by
<https://docs.python.org/3.12/library/sysconfig.html#installation-paths>:
- `data`: Installed over the virtualenv environment root. Warning: This
may override existing files!
- `scripts`: Installed to the directory for executables, `<venv>/bin` on
Unix or `<venv>\Scripts` on Windows. This directory is added to PATH
when the virtual environment is activated or when using `uv run`, so
this data type can be used to install additional binaries. Consider
using `project.scripts` instead for starting Python code.
- `headers`: Installed to the include directory, where compilers
building Python packages with this package as built requirement will
search for header files.
- `purelib` and `platlib`: Installed to the `site-packages` directory.
It is not recommended to uses these two options.

For simplicity, for now we're just defining a directory to be copied for
each data directory, while using the glob based include mechanism in the
background. We thereby introduce a third mechanism next to the main
includes and the PEP 639 mechanism, which is not what we should finalize
on.
2024-11-19 12:59:59 +01:00
..
assets Build backend: Support data files (#9197) 2024-11-19 12:59:59 +01:00
data-dir Build backend: Add source tree -> source dist -> wheel tests (#9091) 2024-11-14 19:15:32 +00:00
header Build backend: Support data files (#9197) 2024-11-19 12:59:59 +01:00
scripts Build backend: Support data files (#9197) 2024-11-19 12:59:59 +01:00
src/built_by_uv Build backend: Add source tree -> source dist -> wheel tests (#9091) 2024-11-14 19:15:32 +00:00
tests Build backend: Add source tree -> source dist -> wheel tests (#9091) 2024-11-14 19:15:32 +00:00
third-party-licenses Build backend: Include readme and license files (#9149) 2024-11-15 14:41:39 +00:00
.gitignore Build backend: Add source tree -> source dist -> wheel tests (#9091) 2024-11-14 19:15:32 +00:00
LICENSE-APACHE Build backend: Include readme and license files (#9149) 2024-11-15 14:41:39 +00:00
LICENSE-MIT Build backend: Include readme and license files (#9149) 2024-11-15 14:41:39 +00:00
pyproject.toml Build backend: Support data files (#9197) 2024-11-19 12:59:59 +01:00
README.md Build backend: Add source tree -> source dist -> wheel tests (#9091) 2024-11-14 19:15:32 +00:00
test.sh Build backend: Add source tree -> source dist -> wheel tests (#9091) 2024-11-14 19:15:32 +00:00
uv.lock Build backend: Add source tree -> source dist -> wheel tests (#9091) 2024-11-14 19:15:32 +00:00

built_by_uv

A package to be built with the uv build backend that uses all features exposed by the build backend.