Source: virulencefinder
Version: 2.0.5-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
virulencefinder could not be built reproducibly.
This was because it ships a different binary package depending
on whether the tests are run or not, which was caused by the
packaging overriding dh_auto_test and therefore effectively
disabling PYBUILD_AFTER_TEST.
Patch attached that moves the "rm -rf" call from the (currently
ignored PYBUILD_AFTER_TEST) to inside override_dh_auto_test.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2025-11-19 13:09:51.092385554 -0800
--- b/debian/rules 2025-11-19 13:16:22.672429991 -0800
@@ -4,7 +4,6 @@
export PYBUILD_SYSTEM=custom
export PYBUILD_CLEAN_ARGS=rm -rf test/Hit_in_genome_seq.fsa
test/Virulence_genes.fsa test/data.json test/tmp test/results_tab.tsv
test/results.txt
-export PYBUILD_AFTER_TEST=rm -rf test/Hit_in_genome_seq.fsa
test/Virulence_genes.fsa test/data.json test/tmp test/results_tab.tsv
test/results.txt
%:
dh $@ --buildsystem=pybuild
@@ -19,6 +18,7 @@
else \
echo "TEST FAILED"; \
fi
+ rm -rf test/Hit_in_genome_seq.fsa test/Virulence_genes.fsa
test/data.json test/tmp test/results_tab.tsv test/results.txt
endif
override_dh_installman: