8000 Fix requirements for wheels · krxsky/github3.py@9c4b0e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c4b0e7

Browse files
committed
Fix requirements for wheels
1 parent 8233d9a commit 9c4b0e7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@
1717
"github3.search",
1818
]
1919

20+
SNI_requirements = [
21+
'pyOpenSSL',
22+
'ndg-httpsclient',
23+
'pyasn1'
24+
]
25+
2026
kwargs['tests_require'] = ['betamax >=0.2.0', 'pytest',
2127
'betamax-matchers>=0.1.0']
2228
if sys.version_info < (3, 0):
2329
kwargs['tests_require'].append('unittest2 ==0.5.1')
24-
requires.extend(["pyOpenSSL", "ndg-httpsclient", "pyasn1"])
2530
if sys.version_info < (3, 3):
2631
kwargs['tests_require'].append('mock ==1.0.1')
2732

@@ -83,7 +88,10 @@ def run_tests(self):
8388
'Programming Language :: Python :: 3.4',
8489
'Programming Language :: Python :: Implementation :: CPython',
8590
],
86-
extras_require={'test': kwargs['tests_require']},
91+
extras_require={
92+
'test': kwargs['tests_require'],
93+
';python_version<="2.7"': SNI_requirements,
94+
},
8795
cmdclass={'test': PyTest},
8896
**kwargs
8997
)

0 commit comments

Comments
 (0)
0