Skip to content

Commit 52da776

Browse files
committed
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.
1 parent 6c4ba17 commit 52da776

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def run_tests(self):
5555
"urllib3 <2; python_version <'3.10'",
5656
# https://github.com/kevin1024/vcrpy/pull/775#issuecomment-1847849962
5757
"urllib3 <2; platform_python_implementation =='PyPy'",
58+
# Workaround for Poetry with CPython >= 3.10, problem description at:
59+
# https://github.com/kevin1024/vcrpy/pull/826
60+
"urllib3; platform_python_implementation !='PyPy' and python_version >='3.10'",
5861
]
5962

6063
extras_require = {

0 commit comments

Comments
 (0)