Package: python-pathos-doc
Severity: wishlist
Tags: patch upstream
User:
reproducible-builds@lists.alioth.debian.org
Usertags: cpu
Dear Maintainer,
I'm an occasional volunteer contributor with the Reproducible Builds[1] project, and noticed recently that the python-pathos-doc package failed[2] an automated reproducibility test on Debian.
From investigation, it seems that most if not all of the cause of non-reproducibility during the test was due to the Sphinx autodoc extension evaluating some of the default Python method values (like mp.pool_size[3])
at build-time and including the evaluated value, which varied, in the documentation.
As a workaround, we can enable the 'autodoc_preserve_defaults'[4] configuration setting, meaning that Sphinx will render the method signature defaults using the
original source code as-written, instead of evaluating the corresponding values.
I'll offer a merge request on Salsa to make that change, and will link that to this bugreport.
Thanks,
James
[1] -
https://reproducible-builds.org/
[2] -
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/pathos.html
[3] -
https://sources.debian.org/src/pathos/0.3.2-1/docs/source/pathos.rst/#L55
https://sources.debian.org/src/multiprocess/0.70.16-2/py3.11/multiprocess/pool.py/#L277
[4] -
https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_preserve_defaults
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)