Bug#1100977: python-moto: please make the build reproducible
Chris Lamb
lamby at debian.org
Fri Mar 21 10:48:35 GMT 2025
Source: python-moto
Version: 5.1.1-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at 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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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 += \
More information about the Reproducible-bugs
mailing list