Limit minium versions of mitmproxy

This commit is contained in:
Adrián Chaves 2022-09-27 08:55:58 +02:00
parent d3f82aa4d5
commit b00f312f08
1 changed files with 3 additions and 2 deletions

View File

@ -14,10 +14,11 @@ deps =
# mitmproxy does not support Windows when running Python < 3.7
# Python 3.9+ requires mitmproxy >= 5.3.0
# mitmproxy >= 5.3.0 requires h2 >= 4.0, Twisted 21.2 requires h2 < 4.0
# mitmproxy < 7.0.0 is not compatible with pyOpenSSL >= 22.1.0
#mitmproxy >= 5.3.0; python_version >= '3.9' and implementation_name != 'pypy'
# The tests hang with mitmproxy 8.0.0: https://github.com/scrapy/scrapy/issues/5454
mitmproxy >= 4.0.4, < 8; python_version >= '3.7' and python_version < '3.9' and implementation_name != 'pypy'
mitmproxy >= 4.0.4, < 5; python_version >= '3.6' and python_version < '3.7' and platform_system != 'Windows' and implementation_name != 'pypy'
mitmproxy >= 7.0.0, < 8; python_version >= '3.7' and python_version < '3.9' and implementation_name != 'pypy'
#mitmproxy >= 4.0.4, < 5; python_version >= '3.6' and python_version < '3.7' and platform_system != 'Windows' and implementation_name != 'pypy'
# newer markupsafe is incompatible with deps of old mitmproxy (which we get on Python 3.7 and lower)
markupsafe < 2.1.0; python_version >= '3.6' and python_version < '3.8' and implementation_name != 'pypy'
# Extras