Skip to content

feat(release): add pre-release version support#678

Merged
cofin merged 1 commit intolitestar-org:mainfrom
cofin:feat/enable-prereleases
Feb 22, 2026
Merged

feat(release): add pre-release version support#678
cofin merged 1 commit intolitestar-org:mainfrom
cofin:feat/enable-prereleases

Conversation

@cofin
Copy link
Copy Markdown
Member

@cofin cofin commented Feb 22, 2026

Summary

  • Add PEP 440 pre-release (alpha/beta/rc) support to bump-my-version config
  • Add make pre-release version=X.Y.ZaN Makefile target
  • Update tools/prepare_release.py to validate pre-release versions and set the GitHub prerelease flag on draft releases
  • Document pre-release workflow in CONTRIBUTING.rst and fix version examples in docs/releases.rst

Enable PEP 440 pre-release workflows (alpha/beta/rc) by updating
bumpversion config, adding a `make pre-release` target, and updating
prepare_release.py to handle pre-release version strings and GitHub
prerelease flags.
Copy link
Copy Markdown
Member

@JacobCoffee JacobCoffee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cofin
Copy link
Copy Markdown
Member Author

cofin commented Feb 22, 2026

have you thought about uv's? https://docs.astral.sh/uv/guides/package/#updating-your-version

We could probably use that for this project. I actually hadn't looked at it. I ported what we use in litestar-vite. And I don't think uv's method will work there. The bump-to-version let's us change the version in multiple files based on a template.

I'll look into the UV version thing a bit more though. It would be nice to simplify things.

@cofin cofin merged commit 9488dd7 into litestar-org:main Feb 22, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants