Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Fixed tag matching in setup.py (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
maaktweluit authored and mfranciszkiewicz committed Dec 20, 2017
1 parent c486858 commit 54268c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup_util/setup_commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def get_version():
if not versions:
raise EnvironmentError("No git version tag found "
"in the repository")
return sorted(versions)[-1]
return sorted(versions, key=lambda s: list(map(int, s.split('.'))))[-1]


def file_name():
Expand Down

0 comments on commit 54268c0

Please sign in to comment.