From 2bd7eab65e3644ac44a1dda2809fa6e9e046b286 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Sun, 21 Jan 2024 22:13:02 -0500 Subject: [PATCH] Fix release CI step for next release --- tasks/release.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/release.py b/tasks/release.py index 90f022c946..4540f4a8f5 100644 --- a/tasks/release.py +++ b/tasks/release.py @@ -258,7 +258,7 @@ def date_offset(dt, month_offset=0, day_offset=0, truncate=False): @invoke.task -def bump_version(ctx, dry_run=False, pre=False): +def bump_version(ctx, dry_run=False, pre=False, dev=False): current_version = semver.VersionInfo.parse(__version__) # Prompt the user for version change type @@ -279,6 +279,8 @@ def bump_version(ctx, dry_run=False, pre=False): # Pre-release handling code if pre: new_version = new_version.bump_prerelease() + if dev: + new_version = new_version.bump_prerelease(current_version, "dev") # Update the version file log("Updating version to %s" % new_version)