diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-15 16:51:16 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-15 16:51:16 +0200 |
commit | 9966616cd4947cfa27019b55cc442c08f3d5f564 (patch) | |
tree | 14b7a339554ae1dda1d55c1d654e9f319b62b819 | |
parent | e12abf18b5f8438c55ff6e8f7e89476dc11438f7 (diff) | |
download | gitlab-9966616cd4947cfa27019b55cc442c08f3d5f564.tar.gz |
setup.py: restore the version discovery hack
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | setup.py | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Version 0.9.1 + + * Fix the setup.py script + Version 0.9 * Implement argparse libray for parsing argument on CLI @@ -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', |