From a249415201dcf611169c09c066dc8d5aa8589cb5 Mon Sep 17 00:00:00 2001 From: Jerome Leclanche Date: Wed, 18 Jul 2018 11:32:11 +0300 Subject: [PATCH] Avoid duplicate dependency on requests The duplicate dependency is causing issues with pip on Python 2.7. Context: - https://github.com/stripe/stripe-python/issues/447 - https://github.com/pypa/pip/issues/4957 Fixes #447 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fda15b7c4..f67092ba0 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def run_tests(self): package_data={'stripe': ['data/ca-certificates.crt']}, zip_safe=False, install_requires=[ - 'requests >= 2', + 'requests >= 2; python_version >= "3.0"', 'requests[security] >= 2; python_version < "3.0"', ], python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",