19
19
with open ('requirements.txt' ) as reqs_file :
20
20
requirements = reqs_file .read ().splitlines ()
21
21
22
+ with open ('test-requirements.txt' ) as reqs_file :
23
+ test_requirements = reqs_file .read ().splitlines ()
24
+
22
25
23
26
class build_py (_build_py ):
24
27
@@ -63,10 +66,6 @@ def _stamp_version(filename):
63
66
print ("WARNING: Couldn't find version line in file %s" % filename , file = sys .stderr )
64
67
65
68
66
- install_requires = ['gitdb2 >= 2.0.0' ]
67
- test_requires = ['ddt>=1.1.1' ]
68
- # end
69
-
70
69
setup (
71
70
name = "GitPython" ,
72
71
cmdclass = {'build_py' : build_py , 'sdist' : sdist },
@@ -81,9 +80,8 @@ def _stamp_version(filename):
81
80
package_dir = {'git' : 'git' },
82
81
license = "BSD License" ,
83
82
python_requires = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*' ,
84
- requires = ['gitdb2 (>=2.0.0)' ],
85
- install_requires = install_requires ,
86
- test_requirements = test_requires + install_requires ,
83
+ requires = requirements ,
84
+ tests_require = requirements + test_requirements ,
87
85
zip_safe = False ,
88
86
long_description = """GitPython is a python library used to interact with Git repositories""" ,
89
87
classifiers = [
@@ -110,6 +108,6 @@ def _stamp_version(filename):
110
108
"Programming Language :: Python :: 3.4" ,
111
109
"Programming Language :: Python :: 3.5" ,
112
110
"Programming Language :: Python :: 3.6" ,
113
- "Programming Language :: Python :: 3.7" ,
111
+ "Programming Language :: Python :: 3.7"
114
112
]
115
113
)
0 commit comments