Skip to content

Commit 4a391db

Browse files
committed
Update CI files
1 parent 466a775 commit 4a391db

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
@@ -56,19 +56,33 @@ ignore = [
5656
current_version = "2.14.17.dev"
5757
commit = false
5858
tag = false
59-
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
59+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<alpha>0a)?(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
6060
serialize = [
61-
"{major}.{minor}.{patch}.{release}",
62-
"{major}.{minor}.{patch}",
61+
"{major}.{minor}.{patch}.{release}",
62+
"{major}.{minor}.{patch}",
63+
"{major}.{minor}.{alpha}{patch}.{release}",
64+
"{major}.{minor}.{alpha}{patch}",
6365
]
6466

67+
[tool.bumpversion.parts.alpha]
68+
# This section is managed by the plugin template. Do not edit manually.
69+
70+
# This is sort of a hack. In PEP440 prerelease markers work quite differently.
71+
# But this fits best with the way we have been doing release versions.
72+
optional_value = "final"
73+
values = [
74+
"0a",
75+
"final",
76+
]
77+
independent = true
78+
6579
[tool.bumpversion.parts.release]
6680
# This section is managed by the plugin template. Do not edit manually.
6781

6882
optional_value = "prod"
6983
values = [
70-
"dev",
71-
"prod",
84+
"dev",
85+
"prod",
7286
]
7387

7488
[[tool.bumpversion.files]]

0 commit comments

Comments
 (0)