From 247401a883ef119e4a001e28f0e0a19eb5975901 Mon Sep 17 00:00:00 2001 From: dgw Date: Tue, 3 Aug 2021 23:57:35 -0700 Subject: [PATCH] requirements: pin requests on py3.3 to fix install/build requests 2.26 switched from chardet to charset-normalizer on py3, and that seems to be broken on py3.3 specifically. --- requirements.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 60572eb803..11bf24e717 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,9 @@ geoip2>=4.0,<5.0; python_version >= '3.6' # transitive dependency of geoip2; v2 dropped py2.7 & py3 < 3.6 maxminddb<2.0; python_version < '3.6' ipaddress<2.0; python_version < '3.3' -requests>=2.0.0,<3.0.0 +requests>=2.0.0,<3.0.0; python_version != '3.3' +# py3.3 doesn't work with the chardet/charset-normalizer detection added in 2.26 +requests>=2.0.0,<2.26; python_version == '3.3' # transitive dependency of requests # 2.0 will drop EOL Python 2.7 & 3.5, just like Sopel 8 plans to urllib3<1.27; python_version != '3.3' and python_version != '3.4'