Make sure the dev version prefix is based on the latest tag in the repo, not
[arvados.git] / sdk / cwl / gittaggers.py
index 873199d7e5a6ffc4ca5ffd480ef976c5dc9f7fe5..4dc8448476123934dae7193fe680141671a2b7ec 100644 (file)
@@ -30,7 +30,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):