uv/docs/guides
Eric Johnson f5f712d75a
Make testpypi index explicit in example snippet (#12148)
<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

Update this example snippet adding test.pypi.org as a publishing index
to mark the index with `explicit = true`. This will help prevent users
from unexpected behavior if no other indices are defined and users don't
select a different index selection algorithm (with `--index-strategy`).
When `test.pypi.org` is the selected index for package management,
packages resolve to odd versions like 0.0.1 and `uv` spits out lots of
errors.

<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan

N/A, documentation only change
<!-- How was it tested? -->
2025-03-13 19:23:08 -04:00
..
integration Bump version to 0.6.6 (#12125) 2025-03-12 00:02:48 +00:00
index.md Misc. improvements to the documentation (#11255) 2025-02-05 17:22:09 -06:00
install-python.md Touch-ups to the Python install guide (#11116) 2025-01-30 13:56:53 -06:00
package.md Make testpypi index explicit in example snippet (#12148) 2025-03-13 19:23:08 -04:00
projects.md Create `main.py` instead of `hello.py` in `uv init` (#10369) 2025-02-13 16:17:49 -06:00
scripts.md Update scripts docs with package indexes (#11443) 2025-02-12 07:52:22 -06:00
tools.md Add support for Windows legacy scripts via uv tool run (#12079) 2025-03-11 09:02:17 -05:00