diff --git a/setup.py b/setup.py index 2b1c1aff3..e8d3f547c 100644 --- a/setup.py +++ b/setup.py @@ -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]