Control: forwarded -1 https://github.com/zopefoundation/zope.deferredimport/pull/19
On Fri, Dec 19, 2025 at 08:26:55AM -0800, Chris Lamb wrote:
Whilst working on the Reproducible Builds effort [0], we noticed that zope.deferredimport could not be built reproducibly. This is because the testsuite regenerates a number of samples, and these generated files differ from the ones that ship with the source package. This means that if the tests are skipped, the binary pacakge contains slightly different contents. To fix this, I've attached a patch that prevents these sample files being distributed in the binary package completely; at a quick glance, they seem to be generated from docstrings in the documentation and aren't meant to be actually used or even read 'standalone'... but I'm sure as maintainer you will have a better handle on this.
As it stands, this patch breaks autopkgtests, because they expect to be able to import the samples from a directory relative to the Python package.
I think a better fix would be to update the doctest so that the sample files it generates match the files shipped in the package, since that only stopped being the case recently. I sent a PR upstream for this (https://github.com/zopefoundation/zope.deferredimport/pull/19) and will apply it in Debian.
Thanks, -- Colin Watson (he/him) [[email protected]]

