Control: tags -1 patch

Dear Maintainer,

Please find attached a pair of patches to address the remaining
reproducibility issues in python-astroplan-doc.

The second patch ('sphinx-matplotlib-ext-reproducible.patch') requires
version 3.10 of matplotlib, a version that has recently been uploaded
to unstable -- hopefully in time to be included in the upcoming Debian
trixie release.

These patches can also be obtained from the Salsa merge request[1]
annotated as the forwarded URL on this bugthread.

Note: the merge request branch includes a refresh of an existing patch
named 'Directly-take-the-version-from-the-package.patch' -- similar
refresh(es) may be needed locally if you apply the patches from this
message instead of using the merge request branch.

Thank you,
James

[1] - https://salsa.debian.org/debian-astro-team/astroplan/-/merge_requests/2
From: James Addison <j...@jp-hosting.net>
Date: Mon, Feb 26 2024 19:25:09 +0000
Subject: enable Sphinx autodoc preservation of method-argument defaults
 .
 This avoids build environment information such as timing information from
 inadvertently leaking into the packaged documentation.
Bug-Debian: http://bugs.debian.org/1064858
diff --git a/docs/conf.py b/docs/conf.py
index 7a9c7d7..03a655b 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -228,3 +228,5 @@ html_extra_path = ["robots.txt"]
 #     dtype, target = line.split(None, 1)
 #     target = target.strip()
 #     nitpick_ignore.append((dtype, six.u(target)))
+
+autodoc_preserve_defaults = True  # http://bugs.debian.org/1064858
From: James Addison <j...@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.

Reply via email to