Commit e99d40e
committed
Make the output reproducible
Whilst working on the Reproducible Builds effort [0] I noticed that
sphinx-panels and sphinx-design do 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 [1], as well as within
sphinx-panels [2]
[0] https://reproducible-builds.org/
[1] https://bugs.debian.org/1017475
[2] executablebooks/sphinx-panels#821 parent f309aee commit e99d40e
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | | - | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
209 | 216 | | |
210 | 217 | | |
211 | 218 | | |
212 | | - | |
| 219 | + | |
213 | 220 | | |
214 | 221 | | |
215 | 222 | | |
| |||
0 commit comments