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 4jD7gr6bfVz6xljV 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 4jD7gr3Tfqz4ZKL 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; bh=5UpbrXya4qhdIgC5HStx2v9y093ilT4CPyPC1vSG1j4=; b=AEjP1HpoNrdxPlxu44aVLxf1IE4Ks96HrXO3dYpLbEaqlwyY43/FGAhHyxBRVPgPjvsTNU Im6YoIWvqlKI4yuirgdOwHxOLjwNTtkC02ElHGHoTl6ujlynL/cVGZwuhzp9vXZ/oS3y8X e6D2BlG4ACr6Wb/B/Jt5duZ2+zA9Fo1acNYgGxul2dJiFh5LgaFKfBdNFdZ8d1+tqYpNgL UwlFL4zkaA9Hv1BGCyL3IsuExf6a3TMcaZ6uaWnQp+7vqR1LQdyJI+HxyZjo3+hq35nTKQ cXAkvC+tTJtF+tVd4Ree35mHwHXDWMlLKCM7+qqmradCAV3/sorddzTtwsL7kA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793054008; b=W+XL/tU2RlyQ4IUklmDo887uMkInYdpmtYoyrpXMsw9MSTKoW+J5r71SuFwtFvoYOS4eUK WXfS2Vbrn+zd02lHD3hI8mxegcMaYKPc7wpi0KBuHfOXCaxy3P3VYMY0hWs3nivMYGsbfI c7O43g5kDsHqEF8A/PwSMT6RjZtfu+lmNVTGyI9/rrxY8iKDyOVB5dhT1qDywGZcomaO4x cUwQSVeQqLRJ64r4/DU+l7QTEa4NYeMjLy6eqKaifSKtx1M6+9O9o4FBdPFHDpCMpoyKeb MaauPyXnSYsleHknrvyKpnoViBFSydHWAEWupp0TpESq9rYJqo3NfyLCs4Kfkw== 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; bh=5UpbrXya4qhdIgC5HStx2v9y093ilT4CPyPC1vSG1j4=; b=tzAR4+xUCDuQsYEzw3mZbgxprd5crTs0rTg7oibo6IUk/xuq9ymsd1J/Bq3angYCwLhUqT fAZY0BsUe3MiEnV2aGXz6A4YRDWxWhblDUsIOoyk+SkCnteSBpUw5ZATuc39TOSFxK7RzY 4FmBElJEjhSBBKEJBPNoqNwkusJjObML/Wj/hOqkh7RT2FtgSKq8eZK++TIl4237itBnWP lG/iUn/ywoe++WjJyTVe5MTb4sSa7SzuJuLiOw6qY/cLLVDS0gLkkZk2Moa6Iy1jvgy4A1 kOFPtSJeFubs8q0OVmg0zuzi/x6ZEYv/AzWrKrOI5HW5wVenJoRdu0VgouOdQQ== 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 4jD7gr35SzztSj 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 69QMXSAf081365 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 69QMXSJR081364 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 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [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-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: patrick@crandol.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300121 Bug ID: 300121 Summary: textproc/py-Tempita: Update to 0.6.0 (0.5.2 imports cgi, removed in Python 3.13) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: patrick@crandol.com Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org 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 --=20 You are receiving this mail because: You are the assignee for the bug.=