File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 28
28
import six
29
29
30
30
import gitlab .config
31
- import gitlab .version
32
31
from gitlab .exceptions import * # noqa
33
32
from gitlab .objects import * # noqa
34
33
35
34
__title__ = 'python-gitlab'
36
- __version__ = gitlab . version . version
35
+ __version__ = '0.12'
37
36
__author__ = 'Gauvain Pocentek'
38
37
__email__ = 'gauvain@pocentek.net'
39
38
__license__ = 'LGPL3'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
4
4
from setuptools import setup
5
5
from 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 ])
7
13
8
14
9
15
setup (name = 'python-gitlab' ,
10
- version = gitlab . version . version ,
16
+ version = get_version () ,
11
17
description = 'Interact with GitLab API' ,
12
18
long_description = 'Interact with GitLab API' ,
13
19
author = 'Gauvain Pocentek' ,
You can’t perform that action at this time.
0 commit comments