Source: python-moto
Version: 5.1.1-3
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because the tests generate a "moto_recording" file that then
gets installed directly under the /usr/lib/python3/dist-packages
directory (which, itself, I believe is a bug).

Patch attached that removes this file after running the testsuite.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-03-21 10:05:50.231493931 +0000
--- b/debian/rules      2025-03-21 10:25:17.982690624 +0000
@@ -8,6 +8,7 @@
 export http_proxy :=
 export https_proxy :=
 export PYBUILD_TEST_ARGS := -m 'not network and not requires_docker' tests
+export PYBUILD_AFTER_TEST := rm -fv {build_dir}/moto_recording
 
 # Requires unpackaged cfnlint.
 PYBUILD_TEST_ARGS += \

Reply via email to