Bug#1120069: python-requests-cache: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Nov 4 19:05:16 GMT 2025
Source: python-requests-cache
Version: 1.2.1-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-requests-cache could not be built reproducibly.
This is because it leaves files after running the tests, and it also
installs files directly under Python's dist-packages/ directory:
/usr/lib/python3/dist-packages/http_cache.sqlite
Patch attached that adds:
export PYBUILD_AFTER_TEST=rm -v {build_dir}/http_cache.sqlite
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-11-04 10:52:52.630176008 -0800
--- b/debian/rules 2025-11-04 11:03:37.908182662 -0800
@@ -3,6 +3,7 @@
export PYBUILD_NAME=requests_cache
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-requests-cache#n43
export PYBUILD_TEST_ARGS=--ignore=tests/integration
+export PYBUILD_AFTER_TEST=rm -v {build_dir}/http_cache.sqlite
%:
dh $@ --with python3 --buildsystem=pybuild
More information about the Reproducible-bugs
mailing list