Hi,
Am 27.09.24 um 06:56 schrieb weepingclown:
Hi,
the file must not have been copied to the testbed, I assume. You can try
adding a debian/pybuild.testfiles file with vectors.json listed in it
and that'd *probably* take care of the issue.
that's one option and mostly the more straightforwarded one.
https://manpages.debian.org/testing/dh-python/pybuild.1.en.html#testfiles
I often use this different way. The comments are not needed, just added
to show what is happen here.
$ git diff
diff --git a/debian/rules b/debian/rules
index d5af02b..415b0e1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,10 @@
#!/usr/bin/make -f
export PYBUILD_NAME=mnemonic
+# Copy needed file vectors.json into build directory before test are running.
+export PYBUILD_BEFORE_TEST=cp vectors.json {build_dir}
+# And remove the file after the test before the data is geting copied into the
package.
+export PYBUILD_AFTER_TEST=rm {build_dir}/vectors.json
%:
dh $@ --with python3 --buildsystem=pybuild
BTW:
If you do a 's/dh-python/dh-sequence-python3' in d/control you can also
drop the '--with python3' option in the default rarget in d/rules.
--
Regards
Carsten