Fix setup.py and setup.cfg dependencies for secure extra
MODIFY
setup.cfg
setup.cfg
@@ -11,9 +11,9 @@ provides-extra =
secure
socks
requires-dist =
- pyOpenSSL>=0.14; python_version=="2.7" and extra == 'secure'
- cryptography>=1.3.4; python_version=="2.7" and extra == 'secure'
- idna>=2.0.0; python_version=="2.7" and extra == 'secure'
+ pyOpenSSL>=0.14; extra == 'secure'
+ cryptography>=1.3.4; extra == 'secure'
+ idna>=2.0.0; extra == 'secure'
certifi; extra == 'secure'
ipaddress; python_version=="2.7" and extra == 'secure'
PySocks>=1.5.6,<2.0,!=1.5.7; extra == 'socks'

MODIFY
setup.py
setup.py
@@ -69,7 +69,7 @@ setup(name='urllib3',
'cryptography>=1.3.4',
'idna>=2.0.0',
'certifi',
- "ipaddress",
+ "ipaddress; python_version=='2.7'",
],
'socks': [
'PySocks>=1.5.6,<2.0,!=1.5.7',

Fix setup.py and setup.cfg dependencies for secure extra (#1497)