Skip to content

Commit f7fbfd6

Browse files
committed
Treat 0.0.0 as invalid version in get_version_info
1 parent 6039d5c commit f7fbfd6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

eng/tools/azure-sdk-tools/packaging_tools/package_utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ def get_version_info(package_name: str, tag_is_stable: bool = False) -> Tuple[st
6868
_LOGGER.warning(f"Failed to get version info from PyPI for {package_name}: {e}")
6969
last_version = ""
7070
last_stable_release = ""
71+
72+
# 0.0.0 is not valid version although it is in pypi
73+
if last_version.startswith("0.0.0"):
74+
return "", ""
75+
7176
return last_version, str(last_stable_release)
7277

7378

0 commit comments

Comments
 (0)