We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6305ebe + 4fb2242 commit 0b00b91Copy full SHA for 0b00b91
1 file changed
setup.py
@@ -11,12 +11,12 @@ def get_current_version_tag():
11
tags = str(output, "utf-8").strip().split("\n")
12
13
version_tags = [tag for tag in tags if re.match(r"^v?(\d*\.){2}\d$", tag)]
14
- dev_tags = [tag for tag in tags if re.match(r"^v?(\d*\.){2}\d-\d*-[a-z\d]{8}$", tag)]
+ rc_tags = [tag for tag in tags if re.match(r"^v?(\d*\.){2}\d*-rc\.\d*$", tag)]
15
16
if len(version_tags) == 1:
17
return version_tags.pop()[1:]
18
- elif len(dev_tags) == 1:
19
- base_tag, num_commits = dev_tags.pop().split("-")[:2]
+ elif len(rc_tags) == 1:
+ base_tag, num_commits = rc_tags.pop().split("-rc.")[:2]
20
return "{}.dev{}".format(base_tag, num_commits)[1:]
21
else:
22
return "0.0.0.dev0"
0 commit comments