From nobody Mon Oct 26 22:33:28 2026 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jD7gr30b3z6xllv for ; Mon, 26 Oct 2026 22:33:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jD7gr1y7bz4ZKK for ; Mon, 26 Oct 2026 22:33:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793054008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yFRvuDC/NO3rNDOnchYr3c4zBIRQIAlsuDK6xsHNDII=; b=ih+IwOPv82H2ilzUSFEWqjqp0Uzb4yiWhe0ykOsY64OaHlDJId8WZ2/0NvjkjVUAIF7knE ZfNeqxAIAjpNi0GL92ZswALuIyInTq0qmiR5yg1bvPUItN6sLzOa69ojdmMGYwHRC8cfLt zjb4Jt5fPF5eVV1SwIFydDK/mGuxekG1YT+axmYNdhV9BIczj2oyNbwkJXv4rHFYYG/Xn/ CqkS+fvUdDVGrih5lgzFHQfGcBapr0JgqfV+UpiHVH1/SzFQazx/b9uaAFJxT3DudP/T5C WYNEft5tLU82OiWl/OAZ/ltn1YOhs5AmVsdVoZbZeaJft/9ZWh7pFbx2YE+VCw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793054008; b=sUQyo+NS3lYBLVjHQ3qkaTyOb46jzaP/1JSnD+gMtye5pNlhAEYQcr+rwEV4jqtC/b2Kaq k96t1tNSW9BrzdlgU0634UDtZ/qGyau9mTTaBve61R4jdq4iSzldFApc4Gp1t0dV5fqRY/ ivpIx2DkcOCA0eQ+iI5Y0xuDfgMCLabbCvQhzGX0wJISVbLDua/RMhrZFZ6nw7+Wkyx0io FT42GzZm+mfi/TmVbARupdp6+p7ywCCyXDiIOw3uU2oyIDaj39k08TINNl72GqrWrkvWyR i7OqZldmE3g0D2aY22szgo4PlQjf6zMTpVI/I0aoLJwFW0a69A1dYYTMFNvgOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793054008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yFRvuDC/NO3rNDOnchYr3c4zBIRQIAlsuDK6xsHNDII=; b=Pq+MFzhdqTCSdHVfshpRX1vQaCgSot3ypvI/7fJDpQy2c7WreEBuNdQ1QPEWSnTYkc79yg OVfoO7lsBhrVOFMaJPzL8Vz5lphxoOR1lf1lTvzS+xIHexNJvUReeGb+dW/krRhOjYbrWb Y+JVxOfSab+A55Yb6aMpFHbLRnPpe2yNDmXrEokxwt5cPupc9cQfrdHn48LVTQJKI3tvd3 Xdl1T9BQBiiLdo0QKG8pk75Ix5P1YtHLKNGCvhdHuZtT6resUEi37YhLrziRRFs2KZEhvg z8mYAqo34ZPL0SMRluSM8XsvMtvE+ULWfX7Gr2Lx7KLJimgimdwViiwGo6puqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4jD7gr1KJVztqS for ; Mon, 26 Oct 2026 22:33:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 69QMXSAO081348 for ; Mon, 26 Oct 2026 22:33:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 69QMXSx5081347 for python@FreeBSD.org; Mon, 26 Oct 2026 22:33:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 300121] textproc/py-Tempita: Update to 0.6.0 (0.5.2 imports cgi, removed in Python 3.13) Date: Mon, 26 Oct 2026 22:33:28 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Archive: https://lists.freebsd.org/archives/freebsd-python X-BeenThere: freebsd-python@freebsd.org Sender: owner-freebsd-python@FreeBSD.org List-Id: FreeBSD-specific Python issues List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Bugzilla Automation has asked freebsd-python (Nobody) for maintainer-feedback: Bug 300121: textproc/py-Tempita: Update to 0.6.0 (0.5.2 imports cgi, remove= d in Python 3.13) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300121 --- Description --- Tempita 0.5.2 does `import cgi` at the top of tempita/__init__.py and uses cgi.escape() for HTML quoting. The cgi module was removed in Python 3.13, so with 3.13 tempita, and every module that imports it, fails. For example, from devel/py-sqlalchemy-migrate: $ python3.13 -c 'import migrate.versioning.api' ModuleNotFoundError: No module named 'cgi' (raised from tempita/__init__.py, line 34). cgi.escape itself was already removed in Python 3.8, so html_quote (tempita/__init__.py lines 446 and 449) is broken at runtime on 3.12 as well. 0.6.0 is a Python 3 release by the new upstream (TurboGears). It replaces cgi.escape() with html.escape(), so the cgi module is no longer needed, and the local 2to3-style patches (files/patch-setup.py, files/patch-tempita-__init__.py) can go. The patch: - updates to 0.6.0 (the distfile is now tempita-0.6.0.tar.gz, hence DISTNAME) - updates WWW to https://github.com/TurboGears/tempita - ships LICENSE (LICENSE_FILE) - removes the two local patches The only change in behaviour is that html_quote also escapes ' as '. Misc changes: - the port switches to USE_PYTHON=3Dpep517 (the package metadata becomes dist-info) - concurrent is added to USE_PYTHON - portlint warnings are fixed Impact: databases/py-sqlalchemy-migrate and www/py-WebError depend on it. I checked databases/py-sqlalchemy-migrate with this change, with Python 3.12 and 3.13, from fresh installs: migrate.versioning.api creates a repository and a script and puts a database under version control, which renders its Tempita templates, and db_version returns 0. The check ran with setuptools installed by hand: sqlalchemy-migrate needs it at run time, but its port does not declare it, which is not caused by this change. www/py-WebError was not checked: it is proposed for deprecation and marked BROKEN in its own PR (it imports cgi). Tested: poudriere bulk on amd64, both with Python 3.12 and with DEFAULT_VERSIONS+=3Dpython=3D3.13, after the pep517 switch: builds, installs the package metadata as .dist-info, and the modules import from the built package (only optional extras are missing). Changes: https://github.com/TurboGears/tempita/commits/main