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

Commit9966616

Browse files
author
Gauvain Pocentek
committed
setup.py: restore the version discovery hack
1 parente12abf1 commit9966616

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 0.9.1
2+
3+
* Fix the setup.py script
4+
15
Version 0.9
26

37
* Implement argparse libray for parsing argument on CLI

‎setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
fromsetuptoolsimportsetup
55
fromsetuptoolsimportfind_packages
66

7-
importgitlab
8-
97

108
defget_version():
11-
12-
returngitlab.__version__
9+
withopen('gitlab/__init__.py')asf:
10+
forlineinf:
11+
ifline.startswith('__version__'):
12+
returneval(line.split('=')[-1])
1313

1414

1515
setup(name='python-gitlab',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp