Skip to content

Commit abfe8c0

Browse files
committed
Hotfix version parse in release check script
Parse version parts (major, minor, patch) as ints in order to accurately compare them.
1 parent d821e90 commit abfe8c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

check_release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ def get_version(spec_head):
7878
raise SpecError("expected to match '{}' (regex) in line {}, but got '{}'."
7979
.format(VERSION_PATTERN, VERSION_LINENO, version_line))
8080

81-
return version_match.groups()
81+
major, minor, patch = version_match.groups()
82+
return int(major), int(minor), int(patch)
8283

8384

8485
def main():

0 commit comments

Comments
 (0)