Skip to content

Commit

Permalink
Permit urllib3 2.x for non-PyPy Python >=3.10
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pjonsson committed Mar 10, 2024
1 parent 6c4ba17 commit 52da776
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 52da776

Please sign in to comment.