Merge pull request 'fix(ci): twine upload --verbose --skip-existing' (#5) from fix/twine-verbose into main
CI / test (3.12) (push) Successful in 27s
CI / test (3.13) (push) Successful in 30s
CI / test (3.11) (push) Successful in 32s

This commit was merged in pull request #5.
This commit is contained in:
christianmanivong committed 2026-10-24 06:15:20 +00:00
commit 7e03ad6ab3
2 files changed
+5 -1

No files matched your search

+3 -1
View File
@@ -203,7 +203,9 @@ jobs:
if [ -z "$TWINE_PASSWORD" ]; then echo "no PYPI_TOKEN secret in this repo"; exit 1; fi if [ -z "$TWINE_PASSWORD" ]; then echo "no PYPI_TOKEN secret in this repo"; exit 1; fi
python -m venv .venv python -m venv .venv
.venv/bin/pip install -q twine "$STANDARD" .venv/bin/pip install -q twine "$STANDARD"
.venv/bin/twine upload --non-interactive dist/* # --verbose: on a refusal PyPI says why (429 on new projects, 2026-10-23/24).
# --skip-existing: a re-run after a partly successful upload does not fail.
.venv/bin/twine upload --non-interactive --verbose --skip-existing dist/*
- name: Gitea release - name: Gitea release
env: env:
GITEA_URL: ${{ github.server_url }} GITEA_URL: ${{ github.server_url }}
+2
View File
@@ -13,6 +13,8 @@ The format follows [Keep a Changelog](https://keepachangelog.com/), versions fol
device-types pilot). device-types pilot).
### Fixed ### Fixed
- `publish` uploads with `--verbose`, so a refusal from PyPI shows its reason, and
`--skip-existing`, so a re-run after a partly successful upload does not fail.
- The shared workflow waits 60 s per download and retries ten times, so a slow PyPI - The shared workflow waits 60 s per download and retries ten times, so a slow PyPI
response no longer fails a job. response no longer fails a job.
- `ratchet` refuses a package directory that does not exist. Guessed from the name - `ratchet` refuses a package directory that does not exist. Guessed from the name