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: /usr/local/lib/python3.9/site-packages/src/platformdirs (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: https://stackoverflow.com/a/36012825/2994620 The attached patch implements this change.
Created attachment 233568 [details] patch
@Craig Thanks for the report. Please commit (and merge if quarterly is affected) if it has been otherwise QA'd
Comment on attachment 233568 [details] patch Approved by: portmgr (blanket: runtime bugfix)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=24c7573559e508cc0fa0746cf5d4e213cc79d127 commit 24c7573559e508cc0fa0746cf5d4e213cc79d127 Author: Craig Leres <leres@FreeBSD.org> AuthorDate: 2022-04-28 22:41:36 +0000 Commit: Craig Leres <leres@FreeBSD.org> CommitDate: 2022-04-28 22:41:36 +0000 devel/py-platformdirs: Unbreak after 2.5.2 update 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 [...] ModuleNotFoundError: No module named 'platformdirs' Apply the tweak described here to adjust for the "src" subdir in the distribution: https://stackoverflow.com/a/36012825/2994620 PR: 263639 Approved by: koobs (portmgr blanket: runtime bugfix) devel/py-platformdirs/Makefile | 1 + devel/py-platformdirs/files/setup.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-)
2.5.2 was committed on April 28th so I don't think this impacts the quarterly.