Bug#1010279: python-iso8601: please make the build reproducible
Followup-For: Bug #1010279 X-Debbugs-Cc: la...@debian.org, reproducible-b...@lists.alioth.debian.org Control: block -1 1056291 Control: close -1 Based on recent reproducible build testing history[1] of this package, and for Debian versions after the fix for #1056291 became available (excludes both bookworm, and builds prior to 2023-12-04 or so), I'm confident that the package is building reproducibly, so I think we can close this. (note: the failures that _have_ occurred recently when build-testing on bookworm illustrate the same dot-dir pollution that we saw previously: unexpected packaging of .hypothesis and .pytest_cache directories) Adding a bug-blocker relationship for historical tracking purposes and closing this bug. [1] - https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-iso8601.html
Bug#1010279: python-iso8601: please make the build reproducible
Source: python-iso8601 Followup-For: Bug #1010279 X-Debbugs-Cc: la...@debian.org, reproducible-b...@lists.alioth.debian.org >From some recent build results, it seems there is a '.hypothesis' directory that is also created within the project's directory at build-time, so it would also be worth filtering that directory in addition to the '.pytest_cache' dir. After searching around on sources.debian.org to find out how other packages handle extraneous files like these, I learned of the 'debian/clean' file; that might be a slightly neater (fewer scripted statements) exclusion approach. Either way: I think that when building with dh-python/6.20231204 onwards, these directories are automatically excluded from the binary package thanks to the fix for #1056291 (an obscure filesystem os.walk bug in dh-python).
Bug#1010279: python-iso8601: please make the build reproducible
Source: python-iso8601 Version: 1.0.2-1 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-iso8601 could not be built reproducibly. This is because it did not clean up some pytest cache directories properly under .pybuild/ and then that got installed into the binary package. A patch to this package is attached, although the bug might really be in pytest itself; I defer to your judgement. :) [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `- --- a/debian/rules 2022-04-27 10:44:36.901334155 -0700 --- b/debian/rules 2022-04-27 10:49:32.975212375 -0700 @@ -4,3 +4,6 @@ %: dh $@ --buildsystem=pybuild --with python3 + +execute_after_dh_auto_test: + find -type d -name .pytest_cache -print0 | xargs -0r rm -rfv