File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed
Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 11## Python GitLab
22
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.
44
55It supports the v3 api of GitLab.
66
File renamed without changes.
Original file line number Diff line number Diff line change 1414#
1515# You should have received a copy of the GNU Lesser General Public License
1616# 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 """
1818from __future__ import print_function
1919from __future__ import division
2020from __future__ import absolute_import
Original file line number Diff line number Diff line change 33
44from setuptools import setup
55
6+ import gitlab
7+
8+
69def 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+
1413
1514setup (name = 'python-gitlab' ,
1615 version = get_version (),
@@ -20,8 +19,8 @@ def get_version():
2019 author_email = 'gauvain@pocentek.net' ,
2120 license = 'LGPLv3' ,
2221 url = 'https://github.com/gpocentek/python-gitlab' ,
23- py_modules = ['gitlab' ],
24- scripts = ['gitlab' ],
22+ packages = ['gitlab' ],
23+ scripts = ['bin/ gitlab' ],
2524 install_requires = ['requests' , 'six' ],
2625 classifiers = [
2726 'Development Status :: 5 - Production/Stable' ,
You can’t perform that action at this time.
0 commit comments