Skip to content

Commit 9ae26fe

Browse files
author
Gauvain Pocentek
committed
Partially revert 00ab7d0
1 parent 8642e9e commit 9ae26fe

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

gitlab/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@
2828
import six
2929

3030
import gitlab.config
31-
import gitlab.version
3231
from gitlab.exceptions import * # noqa
3332
from 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'

gitlab/version.py

-1
This file was deleted.

setup.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33

44
from setuptools import setup
55
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])
713

814

915
setup(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',

0 commit comments

Comments
 (0)