uv/docs
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
..
.overrides Add ``last updated`` for document (#11164) 2025-02-03 22:28:47 -05:00
assets Add `static` assets to docs pages (#6951) 2024-09-02 20:00:30 -04:00
concepts Add support for global `uv python pin` (#12115) 2025-03-13 13:48:37 +01:00
configuration Add support for global `uv python pin` (#12115) 2025-03-13 13:48:37 +01:00
getting-started Bump version to 0.6.6 (#12125) 2025-03-12 00:02:48 +00:00
guides Make testpypi index explicit in example snippet (#12148) 2025-03-13 19:23:08 -04:00
js Add support for anchor redirects with client-side js (#9212) 2024-11-19 22:32:43 -06:00
pip Add `tool.uv.build-constraint-dependencies` to `pyproject.toml` (#11585) 2025-02-17 20:58:36 -05:00
reference Add support for global `uv python pin` (#12115) 2025-03-13 13:48:37 +01:00
stylesheets Remove the last edited date from documentation pages (#11753) 2025-02-24 13:27:00 -06:00
.gitignore Add structured documentation (#4426) 2024-06-26 11:28:42 -05:00
index.md Fix windows installation instructions mismatch (#11380) 2025-02-10 21:42:50 +01:00
requirements-insiders.in Reference the root requirements from the insiders requirements file (#5105) 2024-07-16 09:51:16 -05:00
requirements-insiders.txt Move content from the `mkdocs.public.yml` into the template (#11246) 2025-02-05 16:13:46 +00:00
requirements.in Add ``last updated`` for document (#11164) 2025-02-03 22:28:47 -05:00
requirements.txt Add ``last updated`` for document (#11164) 2025-02-03 22:28:47 -05:00