16
16
'Topic :: Utilities' ,
17
17
] + [
18
18
('Programming Language :: Python :: %s' % x )
19
- for x in '2 2.6 2.7 3 3. 3 3.4 3.5 3.6' .split ()
19
+ for x in '2.7 3 3.4 3.5 3.6' .split ()
20
20
]
21
21
22
22
with open ('README.rst' ) as fd :
@@ -50,12 +50,8 @@ def main():
50
50
install_requires .append ('pluggy>=0.4.0,<0.5' )
51
51
extras_require = {}
52
52
if has_environment_marker_support ():
53
- extras_require [':python_version=="2.6"' ] = ['argparse' , 'ordereddict' ]
54
53
extras_require [':sys_platform=="win32"' ] = ['colorama' ]
55
54
else :
56
- if sys .version_info < (2 , 7 ):
57
- install_requires .append ('argparse' )
58
- install_requires .append ('ordereddict' )
59
55
if sys .platform == 'win32' :
60
56
install_requires .append ('colorama' )
61
57
@@ -69,9 +65,11 @@ def main():
69
65
url = 'http://pytest.org' ,
70
66
license = 'MIT license' ,
71
67
platforms = ['unix' , 'linux' , 'osx' , 'cygwin' , 'win32' ],
72
- author = 'Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruynooghe, Brianna Laugher, Florian Bruhin and others' ,
73
- entry_points = {'console_scripts' :
74
- ['pytest=pytest:main' , 'py.test=pytest:main' ]},
68
+ author = (
69
+ 'Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, '
70
+ 'Floris Bruynooghe, Brianna Laugher, Florian Bruhin and others' ),
71
+ entry_points = {'console_scripts' : [
72
+ 'pytest=pytest:main' , 'py.test=pytest:main' ]},
75
73
classifiers = classifiers ,
76
74
keywords = "test unittest" ,
77
75
cmdclass = {'test' : PyTest },
@@ -87,10 +85,13 @@ def main():
87
85
88
86
class PyTest (Command ):
89
87
user_options = []
88
+
90
89
def initialize_options (self ):
91
90
pass
91
+
92
92
def finalize_options (self ):
93
93
pass
94
+
94
95
def run (self ):
95
96
import subprocess
96
97
PPATH = [x for x in os .environ .get ('PYTHONPATH' , '' ).split (':' ) if x ]
0 commit comments