1919with open ('requirements.txt' )as reqs_file :
2020requirements = reqs_file .read ().splitlines ()
2121
22+
2223class build_py (_build_py ):
24+
2325def run (self ):
2426init = path .join (self .build_lib ,'git' ,'__init__.py' )
2527if path .exists (init ):
@@ -30,7 +32,8 @@ def run(self):
3032
3133
3234class 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 )
3538orig = path .join ('git' ,'__init__.py' )
3639assert path .exists (orig ),orig
@@ -48,7 +51,7 @@ def _stamp_version(filename):
4851except (IOError ,OSError ):
4952print >> sys .stderr ,"Couldn't find file %s to stamp version" % filename
5053return
51- #END handle error, usually happens during binary builds
54+ # END handle error, usually happens during binary builds
5255for line in f :
5356if '__version__ =' in line :
5457line = line .replace ("'git'" ,"'%s'" % VERSION )
@@ -63,35 +66,37 @@ def _stamp_version(filename):
6366else :
6467print >> 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+ )