Repository navigation
feat(versioning): CalVer vYYYYMMDD.N (ADR-0013) - #189
Merged
Merged
Conversation
vYYYY.M.MICRO hid the day: the version said "November", not when. Tags are now the UTC date as one integer plus a same-day counter: v20261114.0, a same-day fix v20261114.1, then v20261115.0. Two integers, so still within macOS's three-integer CFBundleShortVersionString and valid PEP 440; zero-padded, so tags sort by date. - setuptools-scm's describe match now requires an eight-digit date (v[1-9][0-9][0-9][0-9][0-1][0-9][0-3][0-9].*) — the old pattern needed a dot after four digits and would have ignored every new tag. - scripts/next_version.py + tests, ADR-0013 (vYYYY.M.MICRO recorded as rejected; never released), GUIDE, README, workflow comments, fixtures.
# Conflicts: # docs/adr/README.md
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.
Follow-up to #188. The tag format moves from
vYYYY.M.MICROtovYYYYMMDD.N, so the version shows the release day, not just the month.Summary
It's two integers, so it still fits macOS's three-integer
CFBundleShortVersionStringand is valid PEP 440. The date is zero-padded, so tags sort by date.The old pattern required a dot right after four digits, so it would have silently ignored every new-format tag and reported dev versions forever.
Also updated:
scripts/next_version.pyand its tests, ADR-0013 (recordsvYYYY.M.MICROas rejected; it was never released), the GUIDE, the README, workflow comments, and test fixtures.Evidence
setuptools-scmagainst real tags in a scratch repo:pytest: 842 passed, and pyright is clean.scripts/next_version.pyonmainprintsv20261115.0.Merge Danger
Door: two-way
No release has been cut in either format yet.
Blast Radius: release tags
Only the tag format and the tag filter change. Version plumbing, display and the CI flows are untouched from #188.