Bug#1143616: python-nameparser: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Aug 5 00:37:04 BST 2026


Source: python-nameparser
Version: 2.0.0-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
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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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
 
 %:


More information about the Reproducible-bugs mailing list