sphinx-panels icon indicating copy to clipboard operation
sphinx-panels copied to clipboard

Make the output reproducible

Open lamby opened this issue 3 years ago • 4 comments

Whilst working on the Reproducible Builds effort I noticed that sphinx-panels does not create reproducible output.

This is because it uses Python's uuid.uuid4 to generate unique identifiers, but those numbers are random/nondeterminstic by design. This patch will seed these random numbers from SOURCE_DATE_EPOCH if it exists, otherwise it will revert back to random numbers.

(I originally filed this in Debian as bug #1017475.)

lamby avatar Aug 16 '22 19:08 lamby

Thanks for submitting your first pull request! You are awesome! :hugs:
If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.
Welcome to the EBP community! :tada:

welcome[bot] avatar Aug 16 '22 19:08 welcome[bot]

Heya, I'm afraid sphinx-panels is now deprecated for sphinx-design: https://sphinx-design.readthedocs.io/en/furo-theme/get_started.html#migrating-from-sphinx-panels Your welcome to check out that package, and see if the same can be applied

chrisjsewell avatar Aug 16 '22 19:08 chrisjsewell

Heya, I'm afraid sphinx-panels is now deprecated for sphinx-design: https://sphinx-design.readthedocs.io/en/furo-theme/get_started.html#migrating-from-sphinx-panels Your welcome to check out that package, and see if the same can be applied

thanks! in debian we have a handful of packages using sphinx-panels, with the 2 most prominent being matplotlib and scipy; are you aware of any plans from those projects to migrate / were they told to migrate over to sphinx-design? thanks!

sandrotosi avatar Aug 16 '22 20:08 sandrotosi

Sure thing. Have also filed this over in sphinx-design: https://github.com/executablebooks/sphinx-design/pull/90

lamby avatar Aug 16 '22 21:08 lamby