Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def get_latest_semver_tag():
tags = subprocess.check_output(["git", "tag"], text=True).splitlines()
semver_tags = [tag for tag in tags if tag.count(".") == 2 and all(part.isdigit() for part in tag.split("."))]
if not semver_tags:
raise ValueError("No valid semantic version tags found")
print("No valid semantic version tags found, use 0.0.1 defaultly")
semver_tags = ["0.0.1"]
return sorted(semver_tags, key=lambda s: list(map(int, s.split("."))))[-1]


Expand Down
Loading