[Bug 300365] devel/py-jsonform: Deprecate (fails to import on Python 3, only consumer proposed for deprecation)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 30 Oct 2026 22:23:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300365

            Bug ID: 300365
           Summary: devel/py-jsonform: Deprecate (fails to import on
                    Python 3, only consumer proposed for deprecation)
           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
          Assignee: python@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)

devel/py-jsonform 0.0.2 can't be imported on Python 3.12 (and 3.13):

    $ python3.12 -c 'import jsonform'
    ImportError: cannot import name 'JsonForm' from partially initialized
module 'jsonform' (most likely due to a circular import)
(/usr/local/lib/python3.12/site-packages/jsonform/__init__.py)

jsonform/__init__.py:6 uses a Python 2 implicit relative import (`from
jsonform import JsonForm`), which on Python 3 imports the package
itself.

0.0.2 (2015-01-16) is the only release. Upstream
(github.com/RussellLuo/jsonform) fixed this in git on 2024-01-10 but
never made a release.

This proposes deprecating it; I've left EXPIRATION_DATE for you to set.
The patch sets

    DEPRECATED= No release since 2015, fails to import on Python 3
    BROKEN=             a Python 2 implicit relative import causes a circular
import

If you would rather keep the port, the one-line fix for the implicit
relative import in jsonform/__init__.py makes it import, as long as
devel/py-resource is kept as well.

Impact: the only in-tree consumer, devel/py-resource, is proposed for
deprecation in bug 300364. If that is accepted,
nothing in the tree uses this port.

-- 
You are receiving this mail because:
You are the assignee for the bug.