summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xbin/gitlab (renamed from gitlab)0
-rw-r--r--gitlab/__init__.py (renamed from gitlab.py)2
-rw-r--r--setup.py17
4 files changed, 10 insertions, 11 deletions
diff --git a/README.md b/README.md
index 74b58c6..99921ae 100644
--- a/README.md
+++ b/README.md
@@ -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 b/bin/gitlab
index 5e4d44a..5e4d44a 100755
--- a/gitlab
+++ b/bin/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
diff --git a/setup.py b/setup.py
index 4330e6c..141f111 100644
--- a/setup.py
+++ b/setup.py
@@ -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',