From da149cc9d0b614bdbfcab3194ce215aabed12712 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Fri, 17 Oct 2025 15:38:52 +0200 Subject: 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/files/patch-setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 devel/py-mdv/files/patch-setup.py (limited to 'devel/py-mdv/files/patch-setup.py') 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', -- cgit v1.2.3