[Python-modules-team] Bug#942342: traitlets: please make the output reproducible

Chris Lamb lamby at debian.org
Mon Oct 14 22:38:55 BST 2019


Source: traitlets
Version: 4.3.3-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness toolchian
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed
that traitlets generates non-reproducible output which is affecting
the reproducibility of other packages. For example, in nbconvert:

  -<dd><p class="first">Default: […] {'image/jpeg',</span> <span class="pre">'image/svg+xml',</span> <span class="pre">'ap
plication/pdf',</span>
  +<dd><p class="first">Default: <code class="docutils literal notranslate"><span class="pre">{'image/svg+xml',</span> <span class="pre">'application/pdf',</span>

(From https://tests.reproducible-builds.org/debian/rb-pkg/unstable/
amd64/nbconvert.html on 20191014)

This is due to it not iterating over a Set traitlet type in a
deterministic ordering when generating the "Default:" human-readable
string.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: /tmp/traitlets.diff.txt
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20191014/dcc9d154/attachment-0001.txt>


More information about the Python-modules-team mailing list