executablebooks / sphinx-panels

A sphinx extension for creating panels in a grid layout
https://sphinx-panels.readthedocs.io
MIT License
83 stars 20 forks source link

Make the output reproducible #82

Open lamby opened 2 years ago

lamby commented 2 years ago

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.)

welcome[bot] commented 2 years ago

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:

chrisjsewell commented 2 years ago

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

sandrotosi commented 2 years ago

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!

lamby commented 2 years ago

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