From 20e9a6076f140fa668d4a3e7cec70a5c39d9be4d Mon Sep 17 00:00:00 2001 From: Gregorio Litenstein Date: Fri, 14 Jun 2024 09:48:17 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20newer=20twisted=20on=20wi?= =?UTF-8?q?ndows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replicates https://github.com/deluge-torrent/deluge/pull/448/ --- requirements.txt | 3 ++- setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 7674322828..f5113f76b8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ libtorrent<2.0.9 -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',