| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 105896f commit d2e5700
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | ## Python GitLab | |
| 2 | 2 | ||
| 3 | - python-gitlab is a Python module providing access to the GitLab server API. | ||
| 3 | + python-gitlab is a Python package providing access to the GitLab server API. | ||
| 4 | 4 | ||
| 5 | 5 | It supports the v3 api of GitLab. | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ | |||
| 14 | 14 | # | |
| 15 | 15 | # You should have received a copy of the GNU Lesser General Public License | |
| 16 | 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 17 | - """ Module for interfacing with GitLab-api """ | ||
| 17 | + """Package for interfacing with GitLab-api """ | ||
| 18 | 18 | from __future__ import print_function | |
| 19 | 19 | from __future__ import division | |
| 20 | 20 | from __future__ import absolute_import | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,14 +3,13 @@ | |||
| 3 | 3 | ||
| 4 | 4 | from setuptools import setup | |
| 5 | 5 | ||
| 6 | + import gitlab | ||
| 7 | + | ||
| 8 | + | ||
| 6 | 9 | def get_version(): | |
| 7 | - f = open('gitlab.py') | ||
| 8 | - try: | ||
| 9 | - for line in f: | ||
| 10 | - if line.startswith('__version__'): | ||
| 11 | - return eval(line.split('=')[-1]) | ||
| 12 | - finally: | ||
| 13 | - f.close() | ||
| 10 | + | ||
| 11 | + return gitlab.__version__ | ||
| 12 | + | ||
| 14 | 13 | ||
| 15 | 14 | setup(name='python-gitlab', | |
| 16 | 15 | version=get_version(), | |
@@ -20,8 +19,8 @@ def get_version(): | |||
| 20 | 19 | author_email='gauvain@pocentek.net', | |
| 21 | 20 | license='LGPLv3', | |
| 22 | 21 | url='https://github.com/gpocentek/python-gitlab', | |
| 23 | - py_modules=['gitlab'], | ||
| 24 | - scripts=['gitlab'], | ||
| 22 | + packages=['gitlab'], | ||
| 23 | + scripts=['bin/gitlab'], | ||
| 25 | 24 | install_requires=['requests', 'six'], | |
| 26 | 25 | classifiers=[ | |
| 27 | 26 | 'Development Status :: 5 - Production/Stable', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments