Python
Set up Poetry
Add packages.example.com as the primary source and give Poetry the token.
$ poetry source add --priority=primary company https://packages.example.com/pypi/simple/ Adding source with name company. $ poetry config http-basic.company __token__ "$REPO_TOKEN" Using a plaintext file to store credentials $ poetry add requests ... Updating dependencies Resolving dependencies... Package operations: 5 installs, 0 updates, 0 removals - Installing certifi (2026.7.22) - Installing charset-normalizer (3.5.1) - Installing idna (3.20) - Installing urllib3 (2.8.0) - Installing requests (2.34.2) Writing lock file
Captured by running these commands against a real ForgeRepo™.
In a pipeline, skip poetry config and set these instead:
export POETRY_HTTP_BASIC_COMPANY_USERNAME=__token__
export POETRY_HTTP_BASIC_COMPANY_PASSWORD="$REPO_TOKEN"