uv/docs/configuration
Charlie Marsh 1925922770
Enable environment variable authentication for named indexes (#7741)
## Summary

This PR enables users to provide index credentials via named environment
variables.

For example, given an index named `internal` that requires a username
(`public`) and password
(`koala`), you can define the index (without credentials) in your
`pyproject.toml`:

```toml
[[tool.uv.index]]
name = "internal"
url = "https://pypi-proxy.corp.dev/simple"
```

Then set the `UV_INDEX_INTERNAL_USERNAME` and
`UV_INDEX_INTERNAL_PASSWORD`
environment variables, where `INTERNAL` is the uppercase version of the
index name:

```sh
export UV_INDEX_INTERNAL_USERNAME=public
export UV_INDEX_INTERNAL_PASSWORD=koala
```
2024-10-15 22:35:07 +00:00
..
authentication.md Add support for --trusted-host (#6591) 2024-08-27 09:36:50 -04:00
environment.md Add support for named and explicit indexes (#7481) 2024-10-15 18:24:23 -04:00
files.md docs(configuration): clarify uv.toml precedence (#6986) 2024-09-04 15:57:41 +00:00
index.md Add support for named and explicit indexes (#7481) 2024-10-15 18:24:23 -04:00
indexes.md Enable environment variable authentication for named indexes (#7741) 2024-10-15 22:35:07 +00:00