Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd2e5700

Browse files
author
Gauvain Pocentek
committed
gitlab is now a package
1 parent105896f commitd2e5700

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##Python GitLab
22

3-
python-gitlab is a Pythonmodule providing access to the GitLab server API.
3+
python-gitlab is a Pythonpackage providing access to the GitLab server API.
44

55
It supports the v3 api of GitLab.
66

‎gitlabrenamed to ‎bin/gitlab

File renamed without changes.

‎gitlab.pyrenamed to ‎gitlab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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 """
1818
from __future__importprint_function
1919
from __future__importdivision
2020
from __future__importabsolute_import

‎setup.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33

44
fromsetuptoolsimportsetup
55

6+
importgitlab
7+
8+
69
defget_version():
7-
f=open('gitlab.py')
8-
try:
9-
forlineinf:
10-
ifline.startswith('__version__'):
11-
returneval(line.split('=')[-1])
12-
finally:
13-
f.close()
10+
11+
returngitlab.__version__
12+
1413

1514
setup(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',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp