From c2a95af9b539dd0678946ac7eabd9faba264b8ca Mon Sep 17 00:00:00 2001 From: Victor Lei Date: Sun, 20 Nov 2016 06:03:33 +0200 Subject: [PATCH] WIP --- setup.py | 5 ++++- smop/version.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 smop/version.py 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'