RELEASING.md tags a candidate vX.Y.Zrc1 and the release workflow refuses
a tag that does not match __version__, so the version carries the suffix
while a candidate is the tip. Three guards rejected that outright: the
three-part regex, _version_tuple's int() on each dotted part, and the
changelog heading pattern.
They accept a PEP 440 pre-release now and order it below its own release,
matching how SmdaFunction orders a report's version. A two-part version,
a -dev suffix and a four-part version are still rejected.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Second blocker found setting up #343's first rehearsal, after #345. The suite forbids the version string the rehearsal needs.
What fails today
RELEASING.mdtags a candidatevX.Y.Zrc1, andrelease_guard.pyrefuses a tag that does not match__version__, so the version carries the suffix for as long as the candidate is the tip. Setting__version__ = "4.8.0rc1"on master fails three guards:The third is the changelog heading pattern
## \[v([\d.]+)\], whose character class carries no letters.That is not a cosmetic failure. The release workflow gates on
ci.ymlconcludingsuccessfor the tagged commit, so a red suite means the tag can never publish — the pre-release path documented across six repositories cannot be walked in any of them.The change
_version_tuplereturns(release numbers, 1 for a release / 0 for a candidate)— the same ordering #345 gave report import, so a candidate sorts below its own release in both places rather than each having its own idea.Candidates of one release are deliberately not ordered against each other.
4.8.0a1against4.8.0b1compares equal. Nothing here needs that order, and inventing one would be a rule with no reader.What still fails, verified rather than assumed:
4.8,4.8.0-dev,4.8.0.1,v4.8.0and""all raise from_version_tuple, and setting__version__ = "4.8"still fails the same three guards — so this relaxes the shape by exactly one suffix rather than accepting anything.Verification
tests/testPackageMetadata.py→ 11 passed, 5 subtests, on master's4.7.0__version__ = "4.8.0rc1"and a## [v4.8.0rc1]section applied locally → 11 passedruff checkandruff format --checkcleanTest-only, so no changelog entry — nothing under
src/smda/orpyproject.tomlmoves.The
v4.8.0rc1bump comes next and is held until this merges.🤖 Generated with Claude Code