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

This is because the binary differs depending on whether the tests
are run or not. Specifically, it ships a generate_test_timestamps.py
file, but only if the tests are run.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-11-13 08:17:18.234795796 -0800
--- b/debian/rules      2025-11-13 08:21:12.857175383 -0800
@@ -8,6 +8,7 @@
 
 export PYBUILD_NAME=ciso8601
 export PYBUILD_BEFORE_TEST=cp generate_test_timestamps.py {build_dir}
+export PYBUILD_AFTER_TEST=rm {build_dir}/generate_test_timestamps.py
 
 %:
        dh $@ --buildsystem pybuild

Reply via email to