Source: python-django-import-export
Version: 4.3.5-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
python-django-import-export could not be built reproducibly.

This is because the testsuite generates files with nondetermistic
filenames under a django-import-export directory, which then gets
installed to under dist-packages in the binary package.

Patch attached that deletes these after the rest run.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-06-30 10:15:46.318712173 -0700
--- b/debian/rules      2025-06-30 10:19:10.660680730 -0700
@@ -4,6 +4,7 @@
 export PYBUILD_NAME=django-import-export
 export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)
 export DJANGO_SETTINGS_MODULE=tests.settings
+export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/django-import-export/*
 
 %:
        dh $@ --with python3 --buildsystem=pybuild

Reply via email to