diff --git a/setup.py b/setup.py index 5f2d007..66de9b7 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,9 @@ def read_version_tag(): else: return out.strip() or None + else: + return read_version_from_json_file() + return None def read_version_from_json_file(): @@ -72,7 +75,7 @@ def parse_version_tag(tag): Git SHA (if available). ''' if not tag or '-g' not in tag: - return read_version_from_json_file(), None, None + return tag, None, None match = re.search('(?P.*)-(?P[0-9]+)-g(?P[0-9a-fA-F]+)', tag)