diff --git a/setup.py b/setup.py index c3c76d0a..2a6b4a43 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ import os from setuptools import setup -__VERSION__ = "0.32" +try: + __VERSION__ = os.popen("git describe --tags", "r").read().strip() +except: + __VERSION__ = "0.32" open("smop/version.py","w").write("__version__='%s'\n" % __VERSION__) diff --git a/smop/version.py b/smop/version.py deleted file mode 100644 index cdd90ecf..00000000 --- a/smop/version.py +++ /dev/null @@ -1 +0,0 @@ -__version__='0.31'