Skip to content

Align the release process with release.sh - #13

Merged
ftomassetti merged 1 commit into
mainfrom
fix/release-process
Sep 26, 2026
Merged

ftomassetti merged 1 commit into
mainfrom
fix/release-process

Conversation

@ftomassetti

Copy link
Copy Markdown
Contributor

The README described an outdated manual release process (setup.py, editing the version in pyproject.toml), while releases are actually done with release.sh. The script also had a few problems. That's how 0.4.3 ended up published from the refactoring branch without reaching main.

Changes

Version on main: 0.4.2 → 0.4.3. 0.4.3 is already on PyPI and tagged (v0.4.3, made on refactoring). Without this, release.sh would bump to 0.4.3 again and fail when creating the tag. The next release is now 0.4.4, which matches CHANGELOG.md.

release.sh:

  • Takes patch / minor / major as an argument; the default is patch.
  • Refuses to run unless you are on main, with no uncommitted changes, in sync with origin/main.
  • Builds (and runs twine check) before pushing anything, so a failed build doesn't leave a pushed tag behind.
  • Pushes main together with the tag. Before, it pushed only the tags, so no branch on GitHub included the bump commit.
  • Uploads with twine upload --config-file ~/.pypirc without --repository custom-pypi, as in a82f9b2, which exists only on refactoring.

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 patch now gives 0.4.4.
  • Each guard in release.sh exits before bumping. I tested wrong branch, bad argument, main ahead of origin/main, and uncommitted changes.
  • The actual bump / push / upload steps were not run.

🤖 Generated with Claude Code

- 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>
@ftomassetti
ftomassetti merged commit 54f4011 into main Sep 26, 2026
5 checks passed
@ftomassetti
ftomassetti deleted the fix/release-process branch September 26, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant