ci: pin twine<6, bump to v0.1.1 — classic auth on build runner
twine 6 (Sep 2025) auto-detects GitLab CI envvars and refuses to fall back to ~/.pypirc on the runner, requiring PYPI_ID_TOKEN (Trusted Publishing OIDC) instead. Pipeline #40338 (v0.1.0 tag) hit this and failed with TrustedPublishingFailure. Pinning twine<6 restores classic ~/.pypirc auth that ago / make_post_sell / remarkbox already use on the same runner. When we migrate to Trusted Publishing as a coordinated change across all four python/* repos, we'll drop this pin and add an id_tokens block + PyPI trusted-publisher config.
This commit is contained in:
parent
e8f905f2d8
commit
6f05f7eef4
3 changed files with 10 additions and 4 deletions
|
|
@ -37,7 +37,13 @@ pypi-twine:
|
|||
- python3 -m venv .venv
|
||||
- . .venv/bin/activate
|
||||
- pip install --upgrade pip
|
||||
- pip install build twine
|
||||
# Pin twine <6 — newer twine auto-detects GitLab CI and refuses to
|
||||
# fall back to ~/.pypirc on the runner, requiring PYPI_ID_TOKEN
|
||||
# (Trusted Publishing OIDC) instead. Until we migrate all four
|
||||
# python/* repos to Trusted Publishing in one coordinated change,
|
||||
# stick with the classic ~/.pypirc path that ago / make_post_sell /
|
||||
# remarkbox already use.
|
||||
- pip install build "twine<6"
|
||||
- python -m build
|
||||
- twine check dist/*
|
||||
- twine upload dist/*
|
||||
- twine upload --non-interactive dist/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue