File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828import six
2929
3030import gitlab .config
31- import gitlab .version
3231from gitlab .exceptions import * # noqa
3332from gitlab .objects import * # noqa
3433
3534__title__ = 'python-gitlab'
36- __version__ = gitlab . version . version
35+ __version__ = '0.12'
3736__author__ = 'Gauvain Pocentek'
3837__email__ = 'gauvain@pocentek.net'
3938__license__ = 'LGPL3'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33
44from setuptools import setup
55from setuptools import find_packages
6- import gitlab .version
6+
7+
8+ def get_version ():
9+ with open ('gitlab/__init__.py' ) as f :
10+ for line in f :
11+ if line .startswith ('__version__' ):
12+ return eval (line .split ('=' )[- 1 ])
713
814
915setup (name = 'python-gitlab' ,
10- version = gitlab . version . version ,
16+ version = get_version () ,
1117 description = 'Interact with GitLab API' ,
1218 long_description = 'Interact with GitLab API' ,
1319 author = 'Gauvain Pocentek' ,
You can’t perform that action at this time.
0 commit comments