From 2007b5bd2bc1cccc796d29bdbab1904e31a6101d Mon Sep 17 00:00:00 2001 From: DjLegolas Date: Fri, 19 Apr 2024 01:45:35 +0300 Subject: [PATCH] [3634][deps] prevent usage of twisted>=23 on Windows with newer versions of twisted, a regression was added for the GTK reactor on Windows. it effects all versions, including latest (currently 24.3.0). So will prevent the upgrade on Windows only. Closes: https://dev.deluge-torrent.org/ticket/3634 --- requirements.txt | 3 ++- setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index a26ec758d5..3b2a4080de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ libtorrent -twisted[tls]>=17.1 +twisted[tls]>=17.1; sys_platform != 'win32' +twisted[tls]<23,>=17.1; sys_platform == 'win32' rencode pyopenssl pyxdg diff --git a/setup.py b/setup.py index ef70f20b0a..509d383e40 100755 --- a/setup.py +++ b/setup.py @@ -538,7 +538,8 @@ def run(self): setup_requires = ['setuptools', 'wheel'] install_requires = [ - 'twisted[tls]>=17.1', + "twisted[tls]>=17.1; sys_platform != 'win32'", + "twisted[tls]<23,>=17.1; sys_platform == 'win32'", # Add pyasn1 for setuptools workaround: # https://github.com/pypa/setuptools/issues/1510 'pyasn1',