From 4a391db6b018704bc3c8576546e4091906f6f0e4 Mon Sep 17 00:00:00 2001 From: pulpbot Date: Sun, 8 Dec 2024 03:43:35 +0000 Subject: [PATCH] Update CI files --- .github/template_gitref | 2 +- pyproject.toml | 24 +++++++++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/template_gitref b/.github/template_gitref index 70eef8995..22e8d0a9d 100644 --- a/.github/template_gitref +++ b/.github/template_gitref @@ -1 +1 @@ -2021.08.26-405-g3845bbc +2021.08.26-406-g5f397e3 diff --git a/pyproject.toml b/pyproject.toml index 706ff6848..3e692ae53 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,19 +56,33 @@ ignore = [ current_version = "2.14.17.dev" commit = false tag = false -parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)(\\.(?P[a-z]+))?" +parse = "(?P\\d+)\\.(?P\\d+)\\.(?P0a)?(?P\\d+)(\\.(?P[a-z]+))?" serialize = [ - "{major}.{minor}.{patch}.{release}", - "{major}.{minor}.{patch}", + "{major}.{minor}.{patch}.{release}", + "{major}.{minor}.{patch}", + "{major}.{minor}.{alpha}{patch}.{release}", + "{major}.{minor}.{alpha}{patch}", ] +[tool.bumpversion.parts.alpha] +# This section is managed by the plugin template. Do not edit manually. + +# This is sort of a hack. In PEP440 prerelease markers work quite differently. +# But this fits best with the way we have been doing release versions. +optional_value = "final" +values = [ + "0a", + "final", +] +independent = true + [tool.bumpversion.parts.release] # This section is managed by the plugin template. Do not edit manually. optional_value = "prod" values = [ - "dev", - "prod", + "dev", + "prod", ] [[tool.bumpversion.files]]