The setup_requires included pyopenssl, which causes the build to fail if we run `python setup.py egg_info` with an outdated version of pyopenssl. We probably don't need pyopenssl during the actual setup process, only when we're installing the package.
self.test_suite = True
def run_tests(self):
- from imapclient.test.util import unittest # this will import unittest2
+ from imapclient.test.util import unittest # this will import unittest2
module = "__main__"
if IS_PY_26_OR_OLDER or IS_PY_34_OR_NEWER:
module = None
unittest.main(argv=['', 'discover'], module=module)
-main_deps = [
+common_deps = [
+ 'six',
+ 'mock==1.3.0',
+]
+
+main_deps = common_deps + [
'backports.ssl>=0.0.9',
'pyopenssl>=' + info["min_pyopenssl_version"],
- 'six',
- 'mock==1.3.0'
]
-setup_deps = main_deps + ['sphinx']
+setup_deps = common_deps + ['sphinx']
test_deps = []
if IS_PY_26_OR_OLDER: