Your message dated Sun, 1 Dec 2024 00:07:07 +0300
with message-id <[email protected]>
and subject line Re: Bug#901307: sphinx-gallery: please make the build mostly 
reproducible
has caused the Debian Bug report #901307,
regarding sphinx-gallery: please make the build mostly reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
901307: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901307
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: sphinx-gallery
Version: 0.1.13-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that sphinx-gallery could not be built reproducibly.

Patch attached that removes the "Total·​running·​time·​of·​the·​script"
messages from the documentation. (There is some filesystem-related
unreproduciblity that remains, alas.)

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/0004-Reproducible-build.patch      1970-01-01 
01:00:00.000000000 +0100
--- b/debian/patches/0004-Reproducible-build.patch      2018-06-11 
08:57:04.711291748 +0100
@@ -0,0 +1,14 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2018-06-11
+
+--- sphinx-gallery-0.1.13.orig/doc/conf.py
++++ sphinx-gallery-0.1.13/doc/conf.py
+@@ -340,6 +340,7 @@ sphinx_gallery_conf = {
+     'within_subsection_order': NumberOfCodeLinesSortKey,
+     'find_mayavi_figures': find_mayavi_figures,
+     'filename_pattern': '/plot_(?!seaborn_notebook)',
++    'min_reported_time': sys.maxint if sys.version_info[0] == 2 else 
sys.maxsize,
+     'expected_failing_examples': ['../examples/no_output/plot_raise.py',
+                                   '../examples/no_output/plot_syntaxerror.py']
+ }
--- a/debian/patches/series     2018-06-11 08:41:29.296030230 +0100
--- b/debian/patches/series     2018-06-11 08:53:05.420325722 +0100
@@ -2,3 +2,4 @@
 0002-skip-seaborn-tests-require-network-access.patch
 0003-use-facecolor-instead-of-axisbg-when-calling-plt.axe.patch
 0004-Fix-compatibility-of-SphinxDocLinkResolver-with-Sphi.patch
+0004-Reproducible-build.patch

--- End Message ---
--- Begin Message ---
Version: 0.16.0-1

Hi all,

The latest version in sid/testing seems to be reproducible:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/sphinx-gallery.html

In particular:

On Mon, Oct 11, 2021 at 03:04:11PM +0100, Chris Lamb wrote:
> There are a large number of distinct issues here which will require
> different solutions, not all of them involving upstream.
> 
> ## 1. Memory usage
> 
> sphinx-gallery includes memory usage in generated documentation. This
> can be quite easily fixed with the following patch, which is likely
> very amenable to upstream given that it's merely an extension of
> varying the configuration based on the presence of SOURCE_DATE_EPOCH:

This was fixed by disable-call-capture_repr.patch.

> ##. 2. Execution times
> 
> Secondly, there are several instances of "total execution time for
> <filename>" being included in the output. I'm not quite sure how to
> fix this as simply doing something like:

This was fixed by no-computation-times.patch.

> ### 3. sys.argv included in example
>
> Literal contents of sys.argv included in example which then ends up in
> the documentation. This therefore includes the full build path.

This was fixed by reproducible-sys-argv.patch.

> ### 4. Package contains Python bytecode (.pyc)
>
> This probably shouldn't be happening from a Debian packaging PoV:
> 
>   
> /usr/share/doc/python-sphinx-gallery-doc/examples/__pycache__/local_module.cpython-39.pyc

This was fixed earlier, in 0.10.1-4 upload.

> ### 5. junit-results.xml includes timing info
> 
> This file includes timing info:
> 
>   
> /usr/share/doc/python-sphinx-gallery-doc/html/sphinx-gallery/junit-results.xml
> 
> The value of distributing this file seems negligible (if not zero), so
> it's likely this can simply be dropped from the package.

This file is not shipped anymore (deleted by debian/rules).

> ### 6. Memory references in MathJax output
> 
> eg. "[<Line3D object at 0xabcdef00]"

This was probably also fixed by disable-call-capture_repr.patch.

So I am closing this bug.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to