Bug#1095209: python-assertpy: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Feb 5 10:37:48 GMT 2025
Source: python-assertpy
Version: 1.1-1
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-assertpy could not be built reproducibly.
This is because it shipped some strange-looking JSON files that are
presumably generated in the tests:
./usr/lib/python3/dist-packages/__snapshots/snap-test_snapshots.json
@@ -208,17 +208,17 @@
]
],
"79": {
"__data__": [
+ "a",
"c",
- "b",
- "a"
+ "b"
],
They certainly shouldn't be installed to the FIXME directory, and
almost certainly shouldn't be shipped at all, and the attached patch
therefore removes them after the test run.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-02-05 10:34:34.973415486 +0000
--- b/debian/rules 2025-02-05 10:35:32.694069236 +0000
@@ -3,6 +3,8 @@
UPSTREAM_GIT := https://github.com/TomerFi/aioswitcher.git
include /usr/share/openstack-pkg-tools/pkgos.make
+export PYBUILD_AFTER_TEST = rm -rfv {build_dir}/__snapshots
+
%:
dh $@ --buildsystem=pybuild --with python3
More information about the Reproducible-bugs
mailing list