Bug#1120352: dateparser: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Nov 7 22:59:16 GMT 2025


Source: dateparser
Version: 1.2.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
dateparser could not be built reproducibly.

This is because it ships different files depending on whether the tests
were run or not.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-07 14:53:52.981884263 -0800
--- b/debian/rules	2025-11-07 14:57:25.689409762 -0800
@@ -5,6 +5,7 @@
 export PYBUILD_BEFORE_TEST=cp -r {dir}/dateparser_data/ {build_dir}
 export PYBUILD_TEST_ARGS=tests \
     -k 'not test_dateparser_data_integrity and not test_custom_language_detect_fast_text'
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/dateparser_data/
 
 %:
 	dh $@ --buildsystem=pybuild


More information about the Reproducible-bugs mailing list