Skip to content

Commit 9d3b673

Browse files
committed
CI: Fix pre-release tag regex
1 parent f3c3e6e commit 9d3b673

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/utils/_repo.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
DESCRIBE = re.compile(
4343
r"^v"
4444
rf"(?P<version>{count}\.{count}\.{count})"
45-
rf"(?P<pre>(a|b|rc|alpha|beta|\.dev){count})?"
45+
rf"((?P<pre>a|b|rc|alpha|beta|\.dev){count})?"
4646
r"(-(?P<commits>\d+)-g(?P<hash>[a-z0-9]+))?"
4747
r"(?P<dirty>-dirty)?"
4848
r"$"
@@ -56,9 +56,7 @@
5656
PRE_RELEASE_TAG = re.compile(
5757
r"^v"
5858
rf"{count}\.{count}\.{count}"
59-
r"(?:"
60-
rf"(?:a|b|rc|alpha|beta|\.dev){count}"
61-
r")"
59+
rf"((?P<pre>a|b|rc|alpha|beta|\.dev){count})?"
6260
r"$"
6361
)
6462

.github/utils/please.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def set_publish_on():
4343

4444
rtype = Git.release_type()
4545

46-
if rtype in {"stable", "alphabeta", "develoment"}:
46+
if rtype in {"stable", "alpha", "beta", "development"}:
4747
publish_on = "pypi"
4848
elif rtype == "candidate":
4949
publish_on = "testpypi"

0 commit comments

Comments
 (0)