From 3b0cffc2a4964aceb0b7f41d40855c6d285e88ef Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 2 Sep 2016 12:44:04 -0700 Subject: [PATCH] Fix setup_requires in setup.py (#1) 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. --- setup.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index a942b44..fae2f96 100644 --- a/setup.py +++ b/setup.py @@ -58,20 +58,23 @@ class TestDiscoverCommand(TestCommand): 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: -- 2.43.0