Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: NEW: www/py-legacy-cgi
To:
Kurt Mosiejczuk <kurt@cranky.work>, OpenBSD Ports <ports@openbsd.org>
Date:
Wed, 25 Mar 2026 14:48:03 +0000

Download raw body.

Thread
On 2026/03/24 21:40, Kurt Mosiejczuk wrote:
> Python 3.13 removed the cgi and cgitb modules from the
> standard library. At the very least, a bunch of the tests
> for the various python www ports used these modules.
> 
> This port is the fork of those removed modules.
> 
> ok to import?

Already sent out, https://marc.info/?l=openbsd-ports&m=176228011915325&w=2,
I have an OK for that but was holding off importing until as other things
using it had been fixed in a nicer way.

As we keep bumping into more things using it I think I will do that now
(will use mine, yours has a stray pkgpath in PLIST and license marker
copied from py-query). However I would like if people don't blindly use
it and use the suggestions from https://peps.python.org/pep-0594/#cgi
where possible instead of pulling in the dep. i.e. those cases using
parse, parse_header, parse_multipart, valid_boundary.

FieldStorage/MiniFieldStorage are more complicated to replace and may
need some re-design in the code calling them. In various cases upstreams
have already done that in a newer version (e.g. Trac did this), py-webob
haven't finished theirs yet (see https://github.com/Pylons/webob/pull/466)

In the cases you mentioned it is actually py-webob that is using cgi.
And I think it will be breaking main functionality rather than just tests.