diff --git a/requirements.txt b/requirements.txt index a26ec758d..3b2a4080d 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 ef70f20b0..509d383e4 100755 --- a/setup.py +++ b/setup.py @@ -538,7 +538,8 @@ _package_data['deluge.ui.gtk3'] = ['glade/*.ui'] 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',