From 4694426b521950b4300a93b471cfdc8fb38b9e84 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sun, 22 Jan 2023 15:11:41 +0100 Subject: [tbump] Accept 1.2.3b4 format when bumping the version --- script/bump_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bump_changelog.py b/script/bump_changelog.py index 420ca1d22..0963c7c60 100644 --- a/script/bump_changelog.py +++ b/script/bump_changelog.py @@ -49,7 +49,7 @@ def main() -> None: if "dev" in args.version: print("'-devXY' will be cut from version in towncrier.toml") match = re.match( - r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-\w+\d*)*", args.version + r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-?\w+\d*)*", args.version ) if not match: print( -- cgit v1.2.1