uv/docs/configuration
adisbladis 28d4ef35f9
feat: add environment variable to disable writing installer metadata files (#8877)
## Summary

This change introduces the `UV_NO_INSTALLER_METADATA` environment
variable
as a way to opt out of the extra installer metadata files that `uv` is
creating.

This is important to achieve reproducible builds in distribution
packaging, allowing to replace usage of
[installer](https://pypi.org/project/installer) with `uv pip install`.

At the time of writing these files are:
- `uv_cache.json`
    Contains timestamps which are non-reproducible.
    These hashes also leak in to the `RECORD` file.

- `direct_url.json`
    Contains the path to the installed wheel.
While not non-reproducible it's not required for distribution packaging.

- `INSTALLER`
Again, not non-reproducible, but of no value in distribution packaging.

## Test Plan

Automated test added.

---------

Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
2024-12-04 01:29:33 +00:00
..
authentication.md Fix .netrc typo in authentication docs (#8521) 2024-10-24 07:58:39 -05:00
environment.md feat: add environment variable to disable writing installer metadata files (#8877) 2024-12-04 01:29:33 +00:00
files.md Use [[index]] API in configuration example (#9065) 2024-11-12 14:43:54 -05:00
index.md Add support for named and explicit indexes (#7481) 2024-10-15 18:24:23 -04:00
indexes.md Add --index <name>=<url> syntax to index documentation (#9139) 2024-11-15 09:56:19 -06:00
installer.md Use XDG (i.e. ~/.local/bin) instead of the Cargo home directory in the installer (#8420) 2024-11-07 14:29:54 -06:00