Skip to content

Commit f5f712d

Browse files
authored
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? -->
1 parent 33b70b1 commit f5f712d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/guides/package.md

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ If you're using a custom index through `[[tool.uv.index]]`, add `publish-url` an
8282
name = "testpypi"
8383
url = "https://test.pypi.org/simple/"
8484
publish-url = "https://test.pypi.org/legacy/"
85+
explicit = true
8586
```
8687

8788
!!! note

0 commit comments

Comments
 (0)