From 9a35152382571394ca6e7d9b9d127585c10dc053 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Fri, 27 Oct 2023 12:53:48 +0000 Subject: [PATCH 1/3] fix handling of minor and major python bumps --- buildutils/src/release-bump.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/buildutils/src/release-bump.ts b/buildutils/src/release-bump.ts index 1f69b71326..b8c3bc29cb 100644 --- a/buildutils/src/release-bump.ts +++ b/buildutils/src/release-bump.ts @@ -128,6 +128,14 @@ commander } else if (prev.indexOf('rc') !== -1) { pySpec = 'rc'; } + } else if (spec === 'major' || spec === 'minor') { + if (prev.indexOf('a') !== -1) { + pySpec = `${spec},alpha`; + } else if (prev.indexOf('b') !== -1) { + pySpec = `${spec},beta`; + } else if (prev.indexOf('rc') !== -1) { + pySpec = `${spec},rc`; + } } utils.run(`hatch version ${pySpec}`); From 32423e3b6b72ddb2514e228ce0082107f5fdd822 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Fri, 27 Oct 2023 13:03:47 +0000 Subject: [PATCH 2/3] fix bumping versions --- buildutils/src/release-bump.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/buildutils/src/release-bump.ts b/buildutils/src/release-bump.ts index b8c3bc29cb..3654adfd29 100644 --- a/buildutils/src/release-bump.ts +++ b/buildutils/src/release-bump.ts @@ -130,11 +130,13 @@ commander } } else if (spec === 'major' || spec === 'minor') { if (prev.indexOf('a') !== -1) { - pySpec = `${spec},alpha`; - } else if (prev.indexOf('b') !== -1) { pySpec = `${spec},beta`; - } else if (prev.indexOf('rc') !== -1) { + } else if (prev.indexOf('b') !== -1) { pySpec = `${spec},rc`; + } else if (prev.indexOf('rc') !== -1) { + pySpec = `${spec},release`; + } else { + pySpec = `${spec},beta`; } } utils.run(`hatch version ${pySpec}`); From 6bf818b969ab5a07cb5288fa7ff3a05d24412e56 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Fri, 27 Oct 2023 13:04:47 +0000 Subject: [PATCH 3/3] fix alpha bump --- buildutils/src/release-bump.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildutils/src/release-bump.ts b/buildutils/src/release-bump.ts index 3654adfd29..958d1cb844 100644 --- a/buildutils/src/release-bump.ts +++ b/buildutils/src/release-bump.ts @@ -136,7 +136,7 @@ commander } else if (prev.indexOf('rc') !== -1) { pySpec = `${spec},release`; } else { - pySpec = `${spec},beta`; + pySpec = `${spec},alpha`; } } utils.run(`hatch version ${pySpec}`);