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

This is because it ships different contents depending on whether
'nocheck' is specified or not. Specifically, the lack of a
PYBUILD_AFTER_TEST line that cleans up the .pytest-cache directory
after running the tests.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-11-11 10:16:46.612609290 -0800
--- b/debian/rules      2025-11-11 10:36:34.978085712 -0800
@@ -3,6 +3,7 @@
 export DH_VERBOSE=1
 export DH_ALWAYS_EXCLUDE=__pycache__
 export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ytcc 
--install-scripts=/usr/share/ytcc
+export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/.pytest_cache
 
 %:
        dh $@ --with python3 --buildsystem=pybuild

Reply via email to