summaryrefslogtreecommitdiff
path: root/setup.py
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 /setup.py
parente12abf18b5f8438c55ff6e8f7e89476dc11438f7 (diff)
downloadgitlab-9966616cd4947cfa27019b55cc442c08f3d5f564.tar.gz
setup.py: restore the version discovery hack
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 4 insertions, 4 deletions
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',