Authentication
echo "machine pkg.root.io login token password YOUR_ROOT_TOKEN" >> ~/.netrc
chmod 600 ~/.netrc
Configure the Registry
poetry source add --priority=primary root https://pkg.root.io/pypi/simple/ &&
poetry source add --priority=supplemental pypi
Install
poetry add requests==2.31.0
poetry update
Troubleshooting
| Issue | Solution |
|---|---|
401 Unauthorized | Check ~/.netrc token and chmod 600 |
| Packages resolving from PyPI | Confirm root source has --priority=primary |