Control: tags -1 + patch
The upstream build system thinks that it should ship the 'tests'
directory as an extra module and so it gets partly copied into .pybuild
as part of the build process.
The attached patch fixes pyproject.toml to not try installing the tests
directory:
debian/patches/0003-Fix-setup.py-to-not-include-other-directories-as-mod.patch
As a result of fixing pyproject.toml, the manual handling of the test
data in d/rules is no longer needed as pybuild will now do this all
automatically.
0001-Remove-no-longer-needed-manual-handling-of-test-data.patch
regards
Stuart
--
Stuart Prescott http://www.nanonanonano.net/ [email protected]
Debian Developer http://www.debian.org/ [email protected]
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
From 24e82a4a9ef93db7c3e5eb96d37d34a70f95fa8f Mon Sep 17 00:00:00 2001
From: Stuart Prescott <[email protected]>
Date: Thu, 12 Nov 2026 17:45:39 +1100
Subject: [PATCH] Remove no-longer-needed manual handling of test data
---
debian/rules | 1 -
1 file changed, 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index ceb64a6..0dd8df7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,6 @@
#!/usr/bin/make -f
export PYBUILD_NAME=qmix
-export PYBUILD_AFTER_BUILD=cp -r tests/exp-data {build_dir}/tests
%:
dh $@ --with sphinxdoc --buildsystem=pybuild
--
2.47.3
From: Stuart Prescott <[email protected]>
Date: Thu, 12 Nov 2026 17:40:50 +1100
Subject: Fix setup.py to not include other directories as modules
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index eb9b259..d9da92a 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ setup(
"terahertz instrumentation",
"Python"
],
- packages=find_packages(),
+ packages=find_packages(include=["qmix*"]),
include_package_data=True,
install_requires=[
'matplotlib',