python3-requests-ftp: remove use of module cgi

python 3.13 removed some modules such as cgi which is required by python3-requests-ftp:

    https://docs.python.org/3/whatsnew/3.13.html

    Important removals:

    PEP 594: The remaining 19 “dead batteries” (legacy stdlib modules) have
    been removed from the standard library: aifc, audioop, cgi, cgitb,
    chunk, crypt, imghdr, mailcap, msilib, nis, nntplib, ossaudiodev, pipes,
    sndhdr, spwd, sunau, telnetlib, uu and xdrlib.

Backport and rebase a patch from Fedora to remove use of module cgi.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Kai Kang
2025-03-06 18:20:34 +08:00
committed by Khem Raj
parent 2f7b184cda
commit 11b8917fe1
2 changed files with 116 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ HOMEPAGE = "http://github.com/Lukasa/requests-ftp"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6683a23c9968b97709441dc884d46df6"
SRC_URI += "file://0001-Remove-use-of-the-cgi-module.patch"
SRC_URI[sha256sum] = "7504ceb5cba8a5c0135ed738596820a78c5f2be92d79b29f96ba99b183d8057a"
inherit pypi setuptools3