Skip to content

Commit 15c4a95

Browse files
committed
Merge pull request gitpython-developers#203 from hashar/lint-setup_py
Lint setup.py
2 parents 0441fdc + 2ab7ac2 commit 15c4a95

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
with open('requirements.txt') as reqs_file:
2020
requirements = reqs_file.read().splitlines()
2121

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

3133

3234
class sdist(_sdist):
33-
def make_release_tree (self, base_dir, files):
35+
36+
def make_release_tree(self, base_dir, files):
3437
_sdist.make_release_tree(self, base_dir, files)
3538
orig = path.join('git', '__init__.py')
3639
assert path.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
for line in f:
5356
if '__version__ =' in line:
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] for f in os.listdir('./git') if f.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] for f in os.listdir('./git') if f.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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy