Date: Thu, 28 Apr 2022 22:42:03 GMT From: Craig Leres <leres@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 24c7573559e5 - main - devel/py-platformdirs: Unbreak after 2.5.2 update Message-ID: <202204282242.23SMg33d060086@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by leres: 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(-) diff --git a/devel/py-platformdirs/Makefile b/devel/py-platformdirs/Makefile index 7e374d4d6c61..b788885c5249 100644 --- a/devel/py-platformdirs/Makefile +++ b/devel/py-platformdirs/Makefile @@ -2,6 +2,7 @@ PORTNAME= platformdirs PORTVERSION= 2.5.2 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-platformdirs/files/setup.py b/devel/py-platformdirs/files/setup.py index aa5c9455ca96..ca7224ada1e2 100644 --- a/devel/py-platformdirs/files/setup.py +++ b/devel/py-platformdirs/files/setup.py @@ -38,6 +38,9 @@ setup( ], }, packages=[ - 'src.platformdirs', + 'platformdirs', ], + package_dir={ + 'platformdirs': 'src/platformdirs' + }, )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204282242.23SMg33d060086>