File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 17
17
"github3.search" ,
18
18
]
19
19
20
+ SNI_requirements = [
21
+ 'pyOpenSSL' ,
22
+ 'ndg-httpsclient' ,
23
+ 'pyasn1'
24
+ ]
25
+
20
26
kwargs ['tests_require' ] = ['betamax >=0.2.0' , 'pytest' ,
21
27
'betamax-matchers>=0.1.0' ]
22
28
if sys .version_info < (3 , 0 ):
23
29
kwargs ['tests_require' ].append ('unittest2 ==0.5.1' )
24
- requires .extend (["pyOpenSSL" , "ndg-httpsclient" , "pyasn1" ])
25
30
if sys .version_info < (3 , 3 ):
26
31
kwargs ['tests_require' ].append ('mock ==1.0.1' )
27
32
@@ -83,7 +88,10 @@ def run_tests(self):
83
88
'Programming Language :: Python :: 3.4' ,
84
89
'Programming Language :: Python :: Implementation :: CPython' ,
85
90
],
86
- extras_require = {'test' : kwargs ['tests_require' ]},
91
+ extras_require = {
92
+ 'test' : kwargs ['tests_require' ],
93
+ ';python_version<="2.7"' : SNI_requirements ,
94
+ },
87
95
cmdclass = {'test' : PyTest },
88
96
** kwargs
89
97
)
You can’t perform that action at this time.
0 commit comments