Source: python-requests-cache
Version: 1.2.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]
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
`. `'` [email protected] / chris-lamb.co.uk
`-
--- 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