aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Leres <leres@FreeBSD.org>2022-04-28 22:41:36 +0000
committerCraig Leres <leres@FreeBSD.org>2022-04-28 22:41:36 +0000
commit24c7573559e508cc0fa0746cf5d4e213cc79d127 (patch)
tree551d7ae4118dea3627dc1ad9b40ea6ea5287a467
parentcced5c94ff67debc82474366ddc9192bc2058944 (diff)
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)
-rw-r--r--devel/py-platformdirs/Makefile1
-rw-r--r--devel/py-platformdirs/files/setup.py5
2 files changed, 5 insertions, 1 deletions
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'
+ },
)