File: sphinx-matplotlib-ext-reproducible.patch

package info (click to toggle)
astroplan 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,024 kB
  • sloc: python: 4,411; makefile: 126
file content (21 lines) | stat: -rw-r--r-- 775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: James Addison <jay@jp-hosting.net>
Date: Sat, 29 Mar 2025 20:32:21 +0000
Subject: enable a fixed salt for matplotlib hash-based ID-generation of SVG paths
 .
 This removes a source of per-build variance due by avoiding the (default)
 use of randomized UUID4-based salt values.
Bug-Debian: http://bugs.debian.org/1064858
diff --git a/docs/conf.py b/docs/conf.py
index 7a9c7d7..badebc3 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -49,6 +49,9 @@ exclude_patterns.append('_templates')  #
 exclude_patterns.append('psf_spec/*')  # noqa
 
 plot_formats = ['png', 'hires.png', 'pdf', 'svg']
+plot_rcparams = {
+    'svg.hashsalt': 'https://reproducible-builds.org',
+}
 
 # This is added to the end of RST files - a good place to put
 # substitutions to be used globally.