summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index bbbe042..65bddb5 100644
--- a/setup.py
+++ b/setup.py
@@ -3,17 +3,11 @@
from setuptools import setup
from setuptools import find_packages
-
-
-def get_version():
- with open('gitlab/__init__.py') as f:
- for line in f:
- if line.startswith('__version__'):
- return eval(line.split('=')[-1])
+import gitlab.version
setup(name='python-gitlab',
- version=get_version(),
+ version=gitlab.version.version,
description='Interact with GitLab API',
long_description='Interact with GitLab API',
author='Gauvain Pocentek',