diff options
author | Aanand Prasad <aanand.prasad@gmail.com> | 2016-03-31 18:22:18 +0100 |
---|---|---|
committer | Aanand Prasad <aanand.prasad@gmail.com> | 2016-03-31 18:22:18 +0100 |
commit | 26cd4d6f2e7d95b60045c3c574b75191f7a492e4 (patch) | |
tree | c50a066130a88cecee7b60e87498ec8ea7efc945 | |
parent | b19321da9cee2ecfc98cedc09ea4dc243852073e (diff) | |
download | docker-py-26cd4d6f2e7d95b60045c3c574b75191f7a492e4.tar.gz |
Fix py2-ipaddress dependency
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
-rw-r--r-- | setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -12,8 +12,9 @@ requirements = [ 'websocket-client >= 0.32.0', ] -if sys.version_info[0] == 2: - requirements.append('py2-ipaddress >= 3.4.1') +extras_require = { + ':python_version < "3"': 'py2-ipaddress >= 3.4.1', +} exec(open('docker/version.py').read()) @@ -32,6 +33,7 @@ setup( ], install_requires=requirements, tests_require=test_requirements, + extras_require=extras_require, zip_safe=False, test_suite='tests', classifiers=[ |