From a23e519452237b5c79f246a666be0643386701f9 Mon Sep 17 00:00:00 2001 From: pulpbot Date: Sun, 8 Dec 2024 03:43:23 +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 26321c849..f7aa40b17 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,19 +90,33 @@ ignore = [ current_version = "2.23.0.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]]