diff options
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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', |
