From: Menno Smits Date: Fri, 23 Jan 2015 09:20:46 +0000 (+1300) Subject: Install deps at setup time too (so that docs can build) X-Git-Tag: 1.0.0~1^2~57^2~34 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5431a958d4fa8cff9f1c28cb2589d6f92ae33d4b;p=imapclient.git Install deps at setup time too (so that docs can build) --- diff --git a/setup.py b/setup.py index f9b3489..176dd60 100644 --- a/setup.py +++ b/setup.py @@ -57,6 +57,12 @@ class TestDiscoverCommand(TestCommand): module = None unittest.main(argv=['', 'discover'], module=module) +deps = [ + 'six', + 'pyopenssl', + 'service_identity' +], + test_deps = ['mock==0.8.0'] if IS_PY_26_OR_OLDER: test_deps.append('unittest2') @@ -70,12 +76,9 @@ setup(name='IMAPClient', download_url='http://freshfoo.com/projects/IMAPClient/IMAPClient-%s.zip' % info['version'], packages=find_packages(), package_data=dict(imapclient=['examples/*.py']), + setup_requires=deps, + install_requires=deps, tests_require=test_deps, - install_requires=[ - 'six', - 'pyopenssl', - 'service_identity' - ], description="Easy-to-use, Pythonic and complete IMAP client library", long_description=desc, classifiers=[