git: da149cc9d0b6 - main - devel/py-mdv: Exclude tests package from installation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Oct 2025 13:39:15 UTC
The branch main has been updated by ehaupt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=da149cc9d0b614bdbfcab3194ce215aabed12712
commit da149cc9d0b614bdbfcab3194ce215aabed12712
Author: Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2025-10-17 13:38:52 +0000
Commit: Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2025-10-17 13:38:52 +0000
devel/py-mdv: Exclude tests package from installation
The upstream setup.py used setuptools.find_packages() without
exclusions, which caused the top-level "tests" package to be installed
into ${PYTHON_SITELIBDIR}/tests. This violated the Python packaging
hierarchy rules and led to conflicts with other ports installing files
under the same generic directory.
Patch setup.py to exclude the "tests" package from installation.
PR: 290278
Reported by: se
---
devel/py-mdv/Makefile | 2 +-
devel/py-mdv/files/patch-setup.py | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/devel/py-mdv/Makefile b/devel/py-mdv/Makefile
index 91ac172b529c..c1a605b6195d 100644
--- a/devel/py-mdv/Makefile
+++ b/devel/py-mdv/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mdv
PORTVERSION= 1.7.5
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/devel/py-mdv/files/patch-setup.py b/devel/py-mdv/files/patch-setup.py
new file mode 100644
index 000000000000..466a25d78d3f
--- /dev/null
+++ b/devel/py-mdv/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2021-06-18 00:34:33 UTC
++++ setup.py
+@@ -26,7 +26,7 @@ setup(
+ setup(
+ name='mdv',
+ version=version,
+- packages=find_packages(),
++ packages=find_packages(exclude=("tests", "tests.*")),
+ author='Axiros GmbH',
+ author_email='gk@axiros.com',
+ description='Terminal Markdown Viewer',