]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Fix setup_requires in setup.py (#1)
authorBen Gotow <bengotow@gmail.com>
Fri, 2 Sep 2016 19:44:04 +0000 (12:44 -0700)
committerBen Gotow <bengotow@gmail.com>
Fri, 2 Sep 2016 19:44:04 +0000 (12:44 -0700)
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

index a942b44a6c346f8fb809fcd51f9df41f6eb96149..fae2f96bc9195e37d7ea80d5eacb975d6177fc2e 100644 (file)
--- 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: