Skip to content

uv

Make SWNDX the default (and only) index in pyproject.toml:

[[tool.uv.index]]
name = "swndx"
url = "https://py.swndx.dev/public/default/simple/"
default = true

Or for a one-off command: uv pip install --default-index https://py.swndx.dev/public/default/simple/ requests.

Which index? These examples use default (wheels only). If your dependencies need source distributions or approved pre-releases, use relaxed instead: https://py.swndx.dev/public/relaxed/simple/ (replace default with relaxed in every URL above). Compare the two. Use one or the other, never both.

With a token, keep it out of the file and set it in the environment; uv reads credentials for a named index from UV_INDEX_<NAME>_USERNAME and UV_INDEX_<NAME>_PASSWORD:

export UV_INDEX_SWNDX_USERNAME=token
export UV_INDEX_SWNDX_PASSWORD="$SWNDX_TOKEN"

Don't add PyPI as a second index: a second index reopens dependency confusion and defeats the curation.