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

This is because running the testsuite generates a corpus.jsonl file
that ends up being shipped under 
/usr/lib/python3/dist-packages/tools/differential.
This means that if the tests are skipped, the package will miss this
filename and will differ.

A patch is attached that will delete this file after running the
testsuite.


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-08-04 16:17:44.906297544 -0700
--- b/debian/rules      2026-08-04 16:33:08.236876021 -0700
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
 export PYBUILD_BEFORE_TEST=mkdir -p {build_dir}/tools/differential; touch 
{build_dir}/tools/differential/corpus.jsonl
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tools/differential/corpus.jsonl
 export PYBUILD_TEST_ARGS=-k 'not test_v14_constants_blob_unpickles_into_shim 
and not test_v14_pickle_restores_and_parses_warning_free and not 
test_v14_humanname_blob_unpickles' tests
 
 %:

Reply via email to