Add release automation and is-upload input#13
Merged
Conversation
33a292f to
0dbee2c
Compare
0dbee2c to
dab445a
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
version_tool.py(new): AST-based tool for reading and modifying theversionvariable in PyBuilderbuild.pyfiles. Stdlib only, compatible with Python 3.9-3.15+. Performs static analysis to prove version determinism, refusing to operate on files with dynamic versions, conditional assignments,exec/eval, star imports, orglobals()/vars()/locals()calls.action.yml: Newis-uploadinput replaces the ad-hocPYB_EXTRA_ARGS=+uploadshell step pattern. New release automation inputs (auto-release,auto-release-version,auto-github-release,auto-bump-dev,release-tag-prefix,release-title-template,build-py-path,github-token) with new steps for release detection, version stripping, atomic tag+commit push (distributed lock for multi-arch builds), GitHub Release creation, and dev version bump.test.yml: New test jobs forversion_tool.pyacross Python 3.9/3.12/3.14, release detection,is-uploadfunctionality, and end-to-end integration test. The integration test dispatches a workflow onpybuilder/build-integration-testthat exercises the full release cycle on a realpushevent: detect[release], strip.dev, build, tag, GitHub release, and bump dev version.README.md: Updated advanced example, added Upload and Release Automation sections with migration guide. Updatedactions/checkoutandactions/setup-pythonversion references from@v2to@v5/@v6.Test plan
test-version-toolacross Python 3.9, 3.12, 3.14test-release(release detection without push/upload)test-is-upload(upload flag propagation)integration-test(end-to-end release flow onpybuilder/build-integration-test)