From 424b7a76a7ccb33d5765f424895e6a97d4a988b3 Mon Sep 17 00:00:00 2001 From: Laurence Billingham Date: Tue, 27 May 2025 17:39:15 +0100 Subject: [PATCH] fix(deps): allow webtest to work on python 3.13 Should fix issue [#1721](https://github.com/errbotio/errbot/issues/1721). `webtest` is used to validate incomming webhooks in the production Webserver(). Via `webtest` and `webob`, we have a transitive dependency on `cgi`. As of python 3.13 [`cgi` has been dropped from stdlib](https://docs.python.org/3/deprecations/pending-removal-in-3.13.html). --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 834ac7750..c2d56645f 100755 --- a/setup.py +++ b/setup.py @@ -40,6 +40,8 @@ "pygments-markdown-lexer==0.1.0.dev39", # sytax coloring to debug md "dulwich==0.21.5", # python implementation of git "deepmerge==1.1.0", + "legacy-cgi==2.6.3; python_version >= '3.12'", # stopgap fix for webtest after cgi dropped from stdlib + ] src_root = os.curdir