From nobody Fri Oct 30 22:28:04 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 4jGbMl6VXwz6xh18 for ; Fri, 30 Oct 2026 22:28:03 +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 4jGbMl5yvGz4dls for ; Fri, 30 Oct 2026 22:28:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793399283; 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=/Z0BZ6UuusN6Q+1U3zf+yTjFxP4lTzt3KwtF4HHVWAk=; b=Lo/bUHoZU8405O+miwYulvDI0r9yPFUnnjvNvDjc3sYEiNkza2e8LqvtQGap2rHulIr+w4 0rEssCZ+Vqls+3JoQN06jyUuoZaD/M85MsZXzyfrizMA7R3AJ9tNYoS+gmxILBFnFhTW0s bXnR77QLZKUjsrj2lO9IKm3DAJim55IWnTIymlwSj43+qR2s4DeQeEbckp6bzjIDV2V9L7 P0456jY5IbwRZuX5IgyR7TFNPpRNR7NzmEmzRu6F31CTre1fH9p2ved+mFQkV0RaZUF/Uw LWGQrpesQd+KCZOBb4+IKS+KMSSBAidNpXA8Azin50mKXnUXcUREdpACfjc1Zg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793399283; b=vv5sLB2Kwfniop3vSNRfxJMVPSN19Ystda17OyZ8snwLasEB9r4gHEPlmKyFZT++vszNz8 wmEEwy1xlXbr6yGazq6PneUQmKgyU29HsSRiBEanMncGtzlQVlVbLRz2VexGr+/Gu0aRPn Fz/yvU7C5N3ed0NHgVGs0IeikcIL4rv2AeuMjosS8qw4fiK+8neMwtUY+7g52RGErQMktB zg4ErF1p2cITn7FCcJ5QiclPBEtRg/5PdU9l/4ZwuA5TPSLWFpCmxp4J/Pc+pP+q2WxGPB amYDaoiyM+Do9c/Lfc+5iAKC4FoysD8I+LDr7IQvDw3fCjP/awMC0O2fRpmeOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793399283; 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=/Z0BZ6UuusN6Q+1U3zf+yTjFxP4lTzt3KwtF4HHVWAk=; b=ibaO48F6qd0euP3rfMvgpT0hliTYtgrhnjbjnUycncPA5NTuVWM0jR51mvYR7pOycfthbO jehUWh7rcL93oN7l4I68tWHhzfl3Ddzba63IPF6149SmbwFJBgHP/ToyOUdoNDD+K6EqCW U/QR22tR/Gf7KTEvTWrIBJv58BP3qeiF4AXSykwL0Jk13Vs/9zS0mXVIGlGWz+K06PIXcM eeKZnoD1Rfj01cCa2r4DcxFFt+1nzjBqc2WWfgPJ46SOh0ZMtIU54ALYenL6hIIr4xJ20D N3GVxd+OoxPaCiPDBHjcszN19P2jkRzqcK+L136YEeBd03w9K7llNjcAUtbytA== 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 4jGbMl5MCczmcg for ; Fri, 30 Oct 2026 22:28:03 +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 69UMS338022343 for ; Fri, 30 Oct 2026 22:28:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 69UMS3YL022342 for python@FreeBSD.org; Fri, 30 Oct 2026 22:28:03 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 300366] devel/py-jsonsir: Fix RegexEncoder on Python 3.7+ (re._pattern_type) Date: Fri, 30 Oct 2026 22:28:04 +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 300366: devel/py-jsonsir: Fix RegexEncoder on Python 3.7+ (re._pattern_type) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D300366 --- Description --- jsonsir.contrib.regexencoder, the RegexEncoder of devel/py-jsonsir 0.0.2, can't be imported on any Python since 3.7, including 3.12 (and 3.13): $ python3.12 -c 'import jsonsir.contrib.regexencoder' AttributeError: module 're' has no attribute '_pattern_type' jsonsir/contrib/regexencoder.py:12 uses re._pattern_type, which Python 3.7 removed; re.Pattern is the same type. The patch uses re.Pattern and bumps PORTREVISION. The core serializer and the other contrib encoders are not affected. Misc changes: - jsonsir.contrib.objectidencoder imports bson, which neither upstream nor the port declared; it now comes from the new MONGO option (pymongo, off by default) - the patches in files/ get a header saying what each one does and its upstream status (Description, Issue ID, Changeset, TODO) Impact: the only port that depends on it, devel/py-resource, imports exactly this encoder in its Mongo serializer; py-resource is proposed for deprecation in bug 300364 for other reasons. Tested: poudriere bulk -C -t on 15.1-RELEASE amd64, both with Python 3.12 and with DEFAULT_VERSIONS+=3Dpython=3D3.13: builds, check-plist is clean, and from a clean install jsonsir and jsonsir.contrib.regexencoder import and a compiled pattern round-trips through serialize() and deserialize() (unpatched: AttributeError re._pattern_type). The default package is unchanged by the new option; with MONGO enabled, the package depends on pymongo, and jsonsir.contrib.objectidencoder imports and round-trips a bson ObjectId. Upstream: 0.0.2 (2015-01-16) is the only release, and github.com/RussellLuo/jsonsir has had no commits since that day, so the port carries the fix as a local patch.