Tiny improvements to git and version helpers

This commit is contained in:
Mikhail f. Shiryaev 2022-04-06 18:32:54 +02:00
parent 2aa3d32887
commit 846e4b94fb
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
2 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class Git:
if value == "":
return
if not self._tag_pattern.match(value):
raise Exception(f"last tag {value} doesn't match the pattern")
raise ValueError(f"last tag {value} doesn't match the pattern")
@property
def latest_tag(self) -> str:

View File

@ -150,6 +150,9 @@ class ClickHouseVersion:
return False
def __le__(self, other: "ClickHouseVersion") -> bool:
return self == other or self < other
class VersionType:
LTS = "lts"