summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
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',