[Bug 263639] devel/py-platformdirs: Version 2.5.2 breaks pylint (at least)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 28 Apr 2022 21:43:19 UTC

            Bug ID: 263639
           Summary: devel/py-platformdirs: Version 2.5.2 breaks pylint (at
           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", line
10, in <module>
        from pylint.constants import MAIN_CHECKER_NAME
      File "/usr/local/lib/python3.9/site-packages/pylint/constants.py", line
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:


(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 for
the "src" subdir in the distribution:


The attached patch implements this change.

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