Skip to content

Skip an already-published morpheus-mail version on tag builds - #564

Merged
tomhamiltonstubber merged 1 commit into
masterfrom
ci/publish-skip-existing
Oct 7, 2026
Merged

tomhamiltonstubber merged 1 commit into
masterfrom
ci/publish-skip-existing

Conversation

@tomhamiltonstubber

Copy link
Copy Markdown
Member

The publish job runs on every deploy tag, but packaging/morpheus-mail/setup.py hard-codes VERSION, which only changes when the render module does. Any tag that doesn't bump it rebuilds the same version, and PyPI rejects the re-upload with 400 Bad Request. That failed v2.0.13 (2.1.0 was already uploaded by v2.0.12) and v2.0.8 to v2.0.11 before it (2.0.0).

twine upload --skip-existing checks PyPI before uploading and skips files that already exist. Checked locally against the real index with a fake token: both 2.1.0 files are skipped and twine exits 0. A bumped VERSION still uploads as before.

🤖 Generated with Claude Code

…e tag build

Every deploy tag runs the publish job, but setup.py's VERSION only changes when the
render module does, so tags that don't bump it re-upload an existing version and PyPI
returns 400 (v2.0.8-v2.0.11, v2.0.13).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tomhamiltonstubber
tomhamiltonstubber merged commit 854c2fe into master Oct 7, 2026
3 checks passed
@tomhamiltonstubber
tomhamiltonstubber deleted the ci/publish-skip-existing branch October 7, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants