Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added version detection

  • Loading branch information...
commit 7f858a0b6f576b6881992b7070bd5497eca0af86 1 parent 674c954
@stettberger stettberger authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 setup.py
View
11 setup.py
@@ -2,10 +2,19 @@
from distutils.core import setup
+# The version is the latest git tag
+import subprocess
+a = subprocess.Popen("git tag | grep '^v' | tail -n 1", shell = True, stdout = subprocess.PIPE)
+version = a.stdout.readline().strip().replace("v", "")
+a.wait()
+
setup(
name='metagit',
- version=r'',
+ version= version,
+ author = "Christian Dietrich",
+ author_email = "stettberger@dokucode.de",
description='managing big amount of git repositories',
+ license = "GPLv3",
url='http://github.com/stettberger/metagit/',
packages=['gmp'],
scripts=['metagit']
Please sign in to comment.
Something went wrong with that request. Please try again.