Skip to content

Commit 154bd8f

Browse files
pulpbotmdellweg
authored andcommitted
Update CI files
1 parent c0f5ee1 commit 154bd8f

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/template_gitref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021.08.26-405-g3845bbc
1+
2021.08.26-406-g5f397e3

pyproject.toml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,33 @@ ignore = [
9090
current_version = "2.23.0.dev"
9191
commit = false
9292
tag = false
93-
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
93+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<alpha>0a)?(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
9494
serialize = [
95-
"{major}.{minor}.{patch}.{release}",
96-
"{major}.{minor}.{patch}",
95+
"{major}.{minor}.{patch}.{release}",
96+
"{major}.{minor}.{patch}",
97+
"{major}.{minor}.{alpha}{patch}.{release}",
98+
"{major}.{minor}.{alpha}{patch}",
9799
]
98100

101+
[tool.bumpversion.parts.alpha]
102+
# This section is managed by the plugin template. Do not edit manually.
103+
104+
# This is sort of a hack. In PEP440 prerelease markers work quite differently.
105+
# But this fits best with the way we have been doing release versions.
106+
optional_value = "final"
107+
values = [
108+
"0a",
109+
"final",
110+
]
111+
independent = true
112+
99113
[tool.bumpversion.parts.release]
100114
# This section is managed by the plugin template. Do not edit manually.
101115

102116
optional_value = "prod"
103117
values = [
104-
"dev",
105-
"prod",
118+
"dev",
119+
"prod",
106120
]
107121

108122
[[tool.bumpversion.files]]

0 commit comments

Comments
 (0)