diff options
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | bin/gitlab (renamed from gitlab) | 0 | ||||
-rw-r--r-- | gitlab/__init__.py (renamed from gitlab.py) | 2 | ||||
-rw-r--r-- | setup.py | 17 |
4 files changed, 10 insertions, 11 deletions
@@ -1,6 +1,6 @@ ## Python GitLab -python-gitlab is a Python module providing access to the GitLab server API. +python-gitlab is a Python package providing access to the GitLab server API. It supports the v3 api of GitLab. diff --git a/gitlab.py b/gitlab/__init__.py index 9625ac8..3466127 100644 --- a/gitlab.py +++ b/gitlab/__init__.py @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -""" Module for interfacing with GitLab-api """ +"""Package for interfacing with GitLab-api """ from __future__ import print_function from __future__ import division from __future__ import absolute_import @@ -3,14 +3,13 @@ from setuptools import setup +import gitlab + + def get_version(): - f = open('gitlab.py') - try: - for line in f: - if line.startswith('__version__'): - return eval(line.split('=')[-1]) - finally: - f.close() + + return gitlab.__version__ + setup(name='python-gitlab', version=get_version(), @@ -20,8 +19,8 @@ setup(name='python-gitlab', author_email='gauvain@pocentek.net', license='LGPLv3', url='https://github.com/gpocentek/python-gitlab', - py_modules=['gitlab'], - scripts=['gitlab'], + packages=['gitlab'], + scripts=['bin/gitlab'], install_requires=['requests', 'six'], classifiers=[ 'Development Status :: 5 - Production/Stable', |