From a714e0af8e84d6303eebfc25461b4cf0ed651944 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Mon, 6 Oct 2025 18:57:52 +0200 Subject: [PATCH] packaging: drop tests & tests data from the Python package When building the debian package, dh_missing complains that files in probert/rtnetlink/tests are not installed. We could add them to debian/not-installed but really we don't want them in the package at all. Drop them along with other existing test modules. Signed-off-by: Olivier Gayot --- debian/changelog | 1 + debian/probert-common.install | 3 --- setup.py | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9e551b2..0b00cc1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ probert (0.0.21) UNRELEASED; urgency=medium * Add probert-firmware to probe information about the firmware. * Stop leaning on modules implemented in C, use pyroute2 instead. + * Drop tests and tests data from .deb packages -- Olivier Gayot Tue, 02 Jul 2024 15:55:59 +0200 diff --git a/debian/probert-common.install b/debian/probert-common.install index 29ad1ac..1edd98f 100644 --- a/debian/probert-common.install +++ b/debian/probert-common.install @@ -6,7 +6,4 @@ usr/lib/python3.*/dist-packages/probert-*.egg-info/top_level.txt usr/lib/python3.*/dist-packages/probert/__init__.py usr/lib/python3.*/dist-packages/probert/log.py usr/lib/python3.*/dist-packages/probert/prober.py -usr/lib/python3.*/dist-packages/probert/tests/__init__.py -usr/lib/python3.*/dist-packages/probert/tests/data/* -usr/lib/python3.*/dist-packages/probert/tests/*.py usr/lib/python3.*/dist-packages/probert/utils.py diff --git a/setup.py b/setup.py index ae31648..bade39d 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ url='https://github.com/canonical/probert', license="GPLv3", scripts=['bin/probert'], - packages=find_packages(), + packages=find_packages(exclude=["probert.tests*"]), install_requires=['jsonschema', 'pyudev'], - include_package_data=True, + include_package_data=False, )