Skip to main content

Authentication

echo "machine pkg.root.io login token password YOUR_ROOT_TOKEN" >> ~/.netrc
chmod 600 ~/.netrc

Configure the Registry

Add to pyproject.toml:
[[tool.uv.index]]
name = "root"
url = "https://pkg.root.io/pypi/simple/"

Install and Sync

uv add requests==2.31.0
uv sync --upgrade

CI/CD

echo "machine pkg.root.io login token password $ROOT_TOKEN" >> ~/.netrc
chmod 600 ~/.netrc
uv reads ~/.netrc automatically — no additional configuration needed in CI.

Troubleshooting

IssueSolution
401 UnauthorizedCheck ~/.netrc token and chmod 600
Wrong index usedConfirm [[tool.uv.index]] (double brackets) not [tool.uv]