Skip to content

Commit

Permalink
[3634][deps] prevent usage of twisted>=23 on Windows
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DjLegolas committed Apr 18, 2024
1 parent 7f3f7f6 commit 2007b5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2007b5b

Please sign in to comment.