13200: add version
[arvados.git] / sdk / python / gittaggers.py
index da73634cbf0f3518e56b10894323b4cf0996cb48..a94f14c93406cf4a3418993a85c53eafc32dbc5d 100644 (file)
@@ -12,6 +12,11 @@ class EggInfoFromGit(egg_info):
     If a build tag has already been set (e.g., "egg_info -b", building
     from source package), leave it alone.
     """
+    def git_latest_tag(self):
+        gitinfo = subprocess.check_output(
+            ['git', 'describe', '--abbrev=0']).strip()
+        return str(gitinfo.decode('utf-8'))
+
     def git_timestamp_tag(self):
         gitinfo = subprocess.check_output(
             ['git', 'log', '--first-parent', '--max-count=1',