Python
Set up uv
uv reads the index from UV_INDEX_URL.
$ export UV_INDEX_URL="https://__token__:${REPO_TOKEN}@packages.example.com/pypi/simple/" $ uv init --quiet && uv add flask ... Prepared 8 packages in 35ms Installed 8 packages in 3ms + blinker==1.9.0 + click==8.5.0 + flask==3.1.3 + inventory==0.1.0 (from file:///work/inventory) + itsdangerous==2.2.0 + jinja2==3.1.6 + markupsafe==3.0.3 + werkzeug==3.1.8
Captured by running these commands against a real ForgeRepo™.
To keep it in the project instead, add this to pyproject.toml and give uv the token with UV_INDEX_COMPANY_USERNAME=__token__ and UV_INDEX_COMPANY_PASSWORD:
pyproject.toml
[[tool.uv.index]]
name = "company"
url = "https://packages.example.com/pypi/simple/"
default = true