Repository navigation
build(release): derive versions and notes from tags and fragments - #3487
Merged
Merged
Conversation
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.
Why
Tag-driven releases need one place that turns a tag into a version, build and channel, refuses a tag that must not build, and renders notes from changelog fragments. Nothing calls these tools yet.
Change
scripts/release/version.py:parseprints version, build((MAJOR*1000+MINOR)*100+PATCH)*100+R, channel and line.checkruns the tag rules and the CI walk, and diffs a borrowed verdict with the change detector.scripts/release/notes.py:assemble,body,feed,lead,critical,whats-newanddocs, crediting outside PR authors.towncrier.toml, andscripts/release/requirements.txtpinning towncrier 26.9.0 with hashes.scripts/release/test_*.pyon Python 3.9 in a venv installed withpip --require-hashes.Verified
The tests pass on Python 3.9 with towncrier installed from the hashed file. Every
CHANGELOG.mdsection rendered bynotes.py docscompiles with@mdx-js/mdx.Not in this PR
checkreadsrelease-build.ymland thereleasedetector suite, which the Release Build PR adds.changelog.d/, the fragments and.venv/in.gitignoreland at the cutover.