Make sure the dev version prefix is based on the latest tag in the repo, not
[arvados.git] / sdk / python / gittaggers.py
index 213d39a24b071e089a2d05115cddafa3403f3cb8..f3278fcc1d5e7aeab1f6748f90bc80040e6fce37 100644 (file)
@@ -14,7 +14,7 @@ class EggInfoFromGit(egg_info):
     """
     def git_latest_tag(self):
         gittags = subprocess.check_output(['git', 'tag', '-l']).split()
-        gittags.sort(key=lambda s: map(int, s.split('.')),reverse=True)
+        gittags.sort(key=lambda s: [int(u) for u in s.split(b'.')],reverse=True)
         return str(next(iter(gittags)).decode('utf-8'))
 
     def git_timestamp_tag(self):