Source: dateparser
Version: 1.2.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
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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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

Reply via email to