From 599d80ad7bac2dabcc222bda05887fc0559f3e1d Mon Sep 17 00:00:00 2001 From: cp2004 <31997505+cp2004@users.noreply.github.com> Date: Sat, 19 Jun 2021 19:23:28 +0100 Subject: [PATCH] :arrow_up: Upgrade Tornado for Python 3 only Python 3.10 introduces a backwards incompatible change around collections and collections.abcs, which tornado was impacted by. According to Tornado's release notes https://www.tornadoweb.org/en/stable/releases/v6.0.0.html seem like there is not much else to worry about, and the devel branch has already upgraded it. Would be good to get this tested by someone else using Python 3.10 and some plugins, and also some Python 2 installs. See also #4043 for the other collections-related changes. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b03544e42..e19c69cf6 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,6 @@ INSTALL_REQUIRES = [ # introduce backwards incompatible changes that might affect plugins, or due to # other observed problems "markupsafe>=1.1,<2.0", # Jinja dependency, newer versions require Python 3 - "tornado==5.1.1", # newer versions require Python 3 "markdown>=3.1,<3.2", # newer versions require Python 3 "regex!=2018.11.6", # avoid broken 2018.11.6. See #2874 # anything below this should be checked on releases for new versions @@ -70,6 +69,7 @@ INSTALL_REQUIRES = [ # Python 2 specific requirements INSTALL_REQUIRES_PYTHON2 = [ "feedparser>=5.2.1,<6", # newer versions require Python 3 + "tornado==5.1.1", # newer versions require Python 3 "futures>=3.3,<4", "monotonic>=1.5,<2", "scandir>=1.10,<2", @@ -82,6 +82,7 @@ INSTALL_REQUIRES_PYTHON2 = [ # Python 3 specific requirements INSTALL_REQUIRES_PYTHON3 = [ "feedparser>=6.0.2,<7", + "tornado>=6,<7", # tornado < 6 is incompatible with Python 3.10 "zeroconf>=0.24,<0.25", "immutabledict>=1.2.0,<2", "pathvalidate>=2.4.1,<3",