Source: python-osteosarc
Version: 0.15.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
python-osteosarc could not be built reproducibly.

This is because the testsuite creates a .pytest_cache directory that ends
up in the binary package if it is not cleaned up, meaning that if the tests
are skipped, the package will not contain these files — and the package is
therefore unreproducible. (And the package probably shouldn't contain
these files anyway.)

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-11-06 08:17:09.787846034 -0800
--- b/debian/rules      2026-11-06 08:25:14.647924479 -0800
@@ -5,6 +5,7 @@
 export PYBUILD_TEST_PYTEST=1
 export PYBUILD_DESTDIR=debian/tmp
 export PYBUILD_INSTALL_DIR=/usr/lib/python3/dist-packages
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.pytest_cache
 
 %:
        dh $@ --buildsystem=pybuild

Reply via email to