Source: xarray-safe-rcm
Version: 2026.01.0-1
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
xarray-safe-rcm could not be built reproducibly.
This is because the testsuite generates a number of .xsd and .xml files
which end up in the binary package, which means that if the testsuite
is skipped (ie. via nocheck), then the package will have different
contents.
Patch attached that removes these files after running the tests.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2026-01-26 09:13:04.145065347 -0800
--- b/debian/rules 2026-01-26 09:37:16.931421003 -0800
@@ -2,6 +2,7 @@
export PYBUILD_NAME=safe_rcm
export PYBUILD_TEST_ARGS=-k "not test_strip_namespaces" --pyargs
${PYBUILD_NAME}
+export PYBUILD_AFTER_TEST=find {build_dir} -type f \( -name '*.xml' -or -name
'*.xsd' \) -delete
%:
dh $@ --buildsystem=pybuild