From 5e96a0455ed1b47df06adea633d7ebf44b2c9324 2016-12-25 20:14:14 From: Matthias Bussonnier Date: 2016-12-25 20:14:14 Subject: [PATCH] Merge pull request #10099 from takluyver/rm-py2-requires Drop requirements which were only needed on Python 2 --- diff --git a/setup.py b/setup.py index 4d418db..0c36869 100755 --- a/setup.py +++ b/setup.py @@ -212,20 +212,15 @@ install_requires = [ # but requires pip >= 6. pip < 6 ignores these. extras_require.update({ - ':python_version == "2.7"': ['backports.shutil_get_terminal_size'], - ':python_version == "2.7" or python_version == "3.3"': ['pathlib2'], + ':python_version == "3.3"': ['pathlib2'], ':sys_platform != "win32"': ['pexpect'], ':sys_platform == "darwin"': ['appnope'], ':sys_platform == "win32"': ['colorama'], ':sys_platform == "win32" and python_version < "3.6"': ['win_unicode_console>=0.5'], - 'test:python_version == "2.7"': ['mock'], }) # FIXME: re-specify above platform dependencies for pip < 6 # These would result in non-portable bdists. if not any(arg.startswith('bdist') for arg in sys.argv): - if sys.version_info < (3, 3): - extras_require['test'].append('mock') - if sys.platform == 'darwin': install_requires.extend(['appnope'])