We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de2baa5 commit 6e2c91cCopy full SHA for 6e2c91c
setup.py
@@ -58,6 +58,9 @@ def read_version_tag():
58
else:
59
return out.strip() or None
60
61
+ else:
62
+ return read_version_from_json_file()
63
+
64
return None
65
66
def read_version_from_json_file():
@@ -72,7 +75,7 @@ def parse_version_tag(tag):
72
75
Git SHA (if available).
73
76
'''
74
77
if not tag or '-g' not in tag:
- return read_version_from_json_file(), None, None
78
+ return tag, None, None
79
80
match = re.search('(?P<version>.*)-(?P<num_commits>[0-9]+)-g(?P<sha>[0-9a-fA-F]+)', tag)
81
0 commit comments