From 52da776b59b4462b720e041c89cc7f79aa22a8ad Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Sat, 9 Mar 2024 13:21:43 +0100 Subject: [PATCH] Permit urllib3 2.x for non-PyPy Python >=3.10 Poetry makes platform indepdent lock files, so the PyPy marker is there even when using CPython >= 3.10. Add a third constraint that permits any urllib3 version when using Python >=3.10 and some other implementation than PyPy. --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 7a49061d..421dc630 100644 --- a/setup.py +++ b/setup.py @@ -55,6 +55,9 @@ def run_tests(self): "urllib3 <2; python_version <'3.10'", # https://github.com/kevin1024/vcrpy/pull/775#issuecomment-1847849962 "urllib3 <2; platform_python_implementation =='PyPy'", + # Workaround for Poetry with CPython >= 3.10, problem description at: + # https://github.com/kevin1024/vcrpy/pull/826 + "urllib3; platform_python_implementation !='PyPy' and python_version >='3.10'", ] extras_require = {