summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-05-15 16:51:16 +0200
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2015-05-15 16:51:16 +0200
commit9966616cd4947cfa27019b55cc442c08f3d5f564 (patch)
tree14b7a339554ae1dda1d55c1d654e9f319b62b819
parente12abf18b5f8438c55ff6e8f7e89476dc11438f7 (diff)
downloadgitlab-9966616cd4947cfa27019b55cc442c08f3d5f564.tar.gz
setup.py: restore the version discovery hack
-rw-r--r--ChangeLog4
-rw-r--r--setup.py8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b5550b3..81e97cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Version 0.9.1
+
+ * Fix the setup.py script
+
Version 0.9
* Implement argparse libray for parsing argument on CLI
diff --git a/setup.py b/setup.py
index 4f28dd7..3385356 100644
--- a/setup.py
+++ b/setup.py
@@ -4,12 +4,12 @@
from setuptools import setup
from setuptools import find_packages
-import gitlab
-
def get_version():
-
- return gitlab.__version__
+ with open('gitlab/__init__.py') as f:
+ for line in f:
+ if line.startswith('__version__'):
+ return eval(line.split('=')[-1])
setup(name='python-gitlab',