Update setup.py extra_requires

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-01-10 14:57:32 -08:00
parent 340a3fc09c
commit 740a6842e8
1 changed files with 5 additions and 3 deletions

View File

@ -53,7 +53,9 @@ if sys.version_info[:2] < (3, 4):
tests_require.append('mock >= 1.0.1')
extras_require = {
':python_version < "3.4"': ['enum34 >= 1.0.4, < 2']
':python_version < "3.4"': ['enum34 >= 1.0.4, < 2'],
':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5'],
':python_version < "3.3"': ['ipaddress >= 1.0.16'],
}
@ -64,8 +66,8 @@ try:
install_requires.extend(value)
except Exception:
logging.getLogger(__name__).exception(
'Something went wrong calculating platform specific dependencies, so '
"you're getting them all!"
'Failed to compute platform dependencies. All dependencies will be '
'installed as a result.'
)
for key, value in extras_require.items():
if key.startswith(':'):