From 774fe542364ac2db3620ec02fc478c1ce034a9e3 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Mon, 29 Mar 2021 13:43:16 -0400 Subject: [PATCH] Pin twisted version to fix the build --- jetforce/protocol.py | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jetforce/protocol.py b/jetforce/protocol.py index afdeea9..a8bfc3e 100644 --- a/jetforce/protocol.py +++ b/jetforce/protocol.py @@ -6,7 +6,7 @@ import typing import urllib.parse from twisted.internet.address import IPv4Address, IPv6Address -from twisted.internet.defer import Deferred, ensureDeferred, CancelledError +from twisted.internet.defer import CancelledError, Deferred, ensureDeferred from twisted.internet.protocol import connectionDone from twisted.internet.task import deferLater from twisted.protocols.basic import LineOnlyReceiver diff --git a/setup.py b/setup.py index 0ce0d51..6ea9476 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,8 @@ setuptools.setup( author_email="lazar.michael22@gmail.com", description="An Experimental Gemini Server", install_requires=[ - "twisted>=20.3.0", + # 21.2.0 introduces a bunch of broken type hints + "twisted>=20.3.0,<21.2.0", # Requirements below are used by twisted[security] "service_identity", "idna",