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

Commit2ab7ac2

Browse files
committed
Lint setup.py
Pass flake8 on setup.py. I have left behing the 'line too long' errorsthough since they are usually controversial.The setup() call has been reindented to save a level of indentation.
1 parent0441fdc commit2ab7ac2

File tree

1 file changed

+35
-30
lines changed

1 file changed

+35
-30
lines changed

‎setup.py

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
withopen('requirements.txt')asreqs_file:
2020
requirements=reqs_file.read().splitlines()
2121

22+
2223
classbuild_py(_build_py):
24+
2325
defrun(self):
2426
init=path.join(self.build_lib,'git','__init__.py')
2527
ifpath.exists(init):
@@ -30,7 +32,8 @@ def run(self):
3032

3133

3234
classsdist(_sdist):
33-
defmake_release_tree (self,base_dir,files):
35+
36+
defmake_release_tree(self,base_dir,files):
3437
_sdist.make_release_tree(self,base_dir,files)
3538
orig=path.join('git','__init__.py')
3639
assertpath.exists(orig),orig
@@ -48,7 +51,7 @@ def _stamp_version(filename):
4851
except (IOError,OSError):
4952
print>>sys.stderr,"Couldn't find file %s to stamp version"%filename
5053
return
51-
#END handle error, usually happens during binary builds
54+
#END handle error, usually happens during binary builds
5255
forlineinf:
5356
if'__version__ ='inline:
5457
line=line.replace("'git'","'%s'"%VERSION)
@@ -63,35 +66,37 @@ def _stamp_version(filename):
6366
else:
6467
print>>sys.stderr,"WARNING: Couldn't find version line in file %s"%filename
6568

66-
install_requires= ['gitdb >= 0.6.0',]
67-
setup(name="GitPython",
68-
cmdclass={'build_py':build_py,'sdist':sdist},
69-
version=VERSION,
70-
description="Python Git Library",
71-
author="Sebastian Thiel, Michael Trier",
72-
author_email="byronimo@gmail.com, mtrier@gmail.com",
73-
url="http://gitorious.org/projects/git-python/",
74-
packages=find_packages('.'),
75-
py_modules= ['git.'+f[:-3]forfinos.listdir('./git')iff.endswith('.py')],
76-
package_data= {'git.test' : ['fixtures/*']},
77-
package_dir= {'git':'git'},
78-
license="BSD License",
79-
requires=['gitdb (>=0.6.0)'],
80-
install_requires=install_requires,
81-
test_requirements= ['mock','nose']+install_requires,
82-
zip_safe=False,
83-
long_description="""\
69+
install_requires= ['gitdb >= 0.6.0']
70+
71+
setup(
72+
name="GitPython",
73+
cmdclass={'build_py':build_py,'sdist':sdist},
74+
version=VERSION,
75+
description="Python Git Library",
76+
author="Sebastian Thiel, Michael Trier",
77+
author_email="byronimo@gmail.com, mtrier@gmail.com",
78+
url="http://gitorious.org/projects/git-python/",
79+
packages=find_packages('.'),
80+
py_modules=['git.'+f[:-3]forfinos.listdir('./git')iff.endswith('.py')],
81+
package_data={'git.test': ['fixtures/*']},
82+
package_dir={'git':'git'},
83+
license="BSD License",
84+
requires=['gitdb (>=0.6.0)'],
85+
install_requires=install_requires,
86+
test_requirements=['mock','nose']+install_requires,
87+
zip_safe=False,
88+
long_description="""\
8489
GitPython is a python library used to interact with Git repositories""",
85-
classifiers=[
86-
# Picked from
87-
#http://pypi.python.org/pypi?:action=list_classifiers
88-
#"Development Status :: 1 - Planning",
89-
#"Development Status :: 2 - Pre-Alpha",
90-
#"Development Status :: 3 - Alpha",
90+
classifiers=[
91+
# Picked from
92+
# http://pypi.python.org/pypi?:action=list_classifiers
93+
#"Development Status :: 1 - Planning",
94+
#"Development Status :: 2 - Pre-Alpha",
95+
#"Development Status :: 3 - Alpha",
9196
"Development Status :: 4 - Beta",
9297
# "Development Status :: 5 - Production/Stable",
93-
#"Development Status :: 6 - Mature",
94-
#"Development Status :: 7 - Inactive",
98+
#"Development Status :: 6 - Mature",
99+
#"Development Status :: 7 - Inactive",
95100
"Environment :: Console",
96101
"Intended Audience :: Developers",
97102
"License :: OSI Approved :: BSD License",
@@ -106,5 +111,5 @@ def _stamp_version(filename):
106111
# "Programming Language :: Python :: 3",
107112
# "Programming Language :: Python :: 3.3",
108113
# "Programming Language :: Python :: 3.4",
109-
]
110-
)
114+
]
115+
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp