fix(release): tag the versioned distribution source - #106
Merged
HenryNdubuaku merged 1 commit intoSep 2, 2026
Merged
Conversation
Signed-off-by: Mohammedthowfiq <49336054+MohammedThowfiq@users.noreply.github.com>
MohammedThowfiq
force-pushed
the
codex/tag-versioned-release-source
branch
from
September 2, 2026 16:19
de3e768 to
34621a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release tags currently point at the original main commit, while the workflow builds distributions from uncommitted version changes. This makes a source install from the tag report an older version than the published distribution.
Commit the two version metadata files before tagging, keeping that release-only commit on the tag without pushing to main. The daily release check recognizes the tagged commit's source parent so an unchanged main branch still skips publication. Existing tags remain supported.
Fixes #104. This corrects future release tags; existing tags are not rewritten.
Validation
python -m pytest tests/test_release.py -q: 2 passed. Runs the workflow shell blocks in temporary Git repositories to verify tagged metadata, old-style tags, reruns on both the release tag and unchanged main, and the next release after a new source commit. The metadata regression fails against the original workflow.python -m pytest -q -m "not slow": 70 passed, 6 skipped, 5 deselected.python -m build: wheel and source distribution built successfully.The workflow was not run with publishing credentials; tests do not publish packages or push release tags.