Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Apr 2022 21:43:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 263639] devel/py-platformdirs: Version 2.5.2 breaks pylint (at least)
Message-ID:  <bug-263639-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263639

            Bug ID: 263639
           Summary: devel/py-platformdirs: Version 2.5.2 breaks pylint (at
                    least)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: leres@freebsd.org
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

The upgrade of py-platformdirs to 2.5.2 breaks pylint (and most certainly
anything else that uses the module):

    lns 57 % pylint [...] lblcache.py
    [...]
        from pylint import utils
      File "/usr/local/lib/python3.9/site-packages/pylint/utils/__init__.py=
",
line 10, in <module>
        from pylint.utils.docs import print_full_documentation
      File "/usr/local/lib/python3.9/site-packages/pylint/utils/docs.py", l=
ine
10, in <module>
        from pylint.constants import MAIN_CHECKER_NAME
      File "/usr/local/lib/python3.9/site-packages/pylint/constants.py", li=
ne
10, in <module>
        import platformdirs
    ModuleNotFoundError: No module named 'platformdirs'

Downgrading to 2.5.1 fixes this.

The problem appears to be that the platformdirs module installs in:

    /usr/local/lib/python3.9/site-packages/src/platformdirs=20

(Note extra /src/ in the path.) Apparently 2.5.2 does not include setup.py =
so
the port now supplies one but it needs the tweak described here to adjust f=
or
the "src" subdir in the distribution:

    https://stackoverflow.com/a/36012825/2994620

The attached patch implements this change.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263639-7788>