diff --git a/ChangeLog b/ChangeLog index b5550b3c4..81e97cf1f 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/gitlab/__init__.py b/gitlab/__init__.py index 93dee619b..93e8b82ad 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -27,7 +27,7 @@ import six __title__ = 'python-gitlab' -__version__ = '0.9' +__version__ = '0.9.1' __author__ = 'Gauvain Pocentek' __email__ = 'gauvain@pocentek.net' __license__ = 'LGPL3' diff --git a/setup.py b/setup.py index 4f28dd75f..3385356ad 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',