Source: spopt
Version: 0.7.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
spopt could not be built reproducibly.

This is because the testsuite does not completely clean up after itself,
leading to files that only exist if the testsuite is run.

Assuming that these files are not useful at runtime, the attached patch
removes these files after the test run.


 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-07-20 08:53:55.417477558 -0700
--- b/debian/rules      2026-07-20 10:47:40.784477979 -0700
@@ -8,6 +8,7 @@
 export PYBUILD_NAME=spopt
 export PYBUILD_TEST_ARGS=-s -v --ignore=spopt/tests/test_region/test_sa3.py
 export PYBUILD_BEFORE_TEST=cp -r {dir}/spopt/tests/test_locate/data 
{build_dir}/spopt/tests/test_locate
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/spopt/tests/test_locate/data
 
 %:
        dh $@ --with sphinxdoc  --buildsystem=pybuild

Reply via email to