Repository navigation
Align the release process with release.sh - #13
Merged
Merged
Conversation
- Set the version on main to 0.4.3, the version already published (the 0.4.3 bump was made on the refactoring branch), so the next release is 0.4.4. - release.sh: take patch/minor/major as argument, refuse to run unless on a clean main in sync with origin/main, build before pushing, push main together with the tag, and upload to PyPI without the custom repository (as in a82f9b2 on the refactoring branch). - README: describe the release process based on release.sh instead of the outdated manual steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The README described an outdated manual release process (
setup.py, editing the version inpyproject.toml), while releases are actually done withrelease.sh. The script also had a few problems. That's how 0.4.3 ended up published from therefactoringbranch without reachingmain.Changes
Version on
main: 0.4.2 → 0.4.3. 0.4.3 is already on PyPI and tagged (v0.4.3, made onrefactoring). Without this,release.shwould bump to 0.4.3 again and fail when creating the tag. The next release is now 0.4.4, which matchesCHANGELOG.md.release.sh:patch/minor/majoras an argument; the default ispatch.main, with no uncommitted changes, in sync withorigin/main.twine check) before pushing anything, so a failed build doesn't leave a pushed tag behind.maintogether with the tag. Before, it pushed only the tags, so no branch on GitHub included the bump commit.twine upload --config-file ~/.pypircwithout--repository custom-pypi, as in a82f9b2, which exists only onrefactoring.README: the "Release process" section now describes
release.sh: which tools to install, updating the changelog first, and what the script does.Testing
bump2version --dry-run patchnow gives 0.4.4.release.shexits before bumping. I tested wrong branch, bad argument,mainahead oforigin/main, and uncommitted changes.🤖 Generated with Claude Code