Skip to content

Commit

Permalink
gitlab is now a package
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed May 11, 2015
1 parent 105896f commit d2e5700
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion 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.

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion gitlab.py → gitlab/__init__.py
Expand Up @@ -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
Expand Down
17 changes: 8 additions & 9 deletions setup.py
Expand Up @@ -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(),
Expand All @@ -20,8 +19,8 @@ def get_version():
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',
Expand Down

0 comments on commit d2e5700

Please sign in to comment.