summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDjLegolas <djlegolas@protonmail.com>2024-04-19 00:45:35 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2024-08-24 12:34:16 +0200
commit322faa7a54ec262ece4612ef306de966d78cd2d9 (patch)
tree17f9f6595150d0fa57d5d1f4a7686071c1ef57ff
parent[WebUI] Fix gettext _ imports (diff)
downloaddeluge-322faa7a54ec262ece4612ef306de966d78cd2d9.tar.xz
deluge-322faa7a54ec262ece4612ef306de966d78cd2d9.zip
[Build] 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. Issue: https://dev.deluge-torrent.org/ticket/3634 Related: https://github.com/twisted/twisted/issues/11987 Closes: https://github.com/deluge-torrent/deluge/pull/448
-rw-r--r--requirements.txt3
-rwxr-xr-xsetup.py3
2 files changed, 4 insertions, 2 deletions
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',