Make the build reproducible (#805)

Whilst working on the Reproducible Builds effort [0] we noticed
that pydantic could not be built reproducibly.

This is due to it generating the contents of the `PKG-INFO` file
via iterating over the contents of a set.

This was originally filed in Debian as #940156 [1].

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/940156

Signed-off-by: Chris Lamb <lamby@debian.org>
This commit is contained in:
Chris Lamb
2019-09-13 11:56:57 +02:00
committed by Samuel Colvin
parent 7704ff857e
commit ef894d20b3
+1 -1
View File
@@ -22,7 +22,7 @@ class ReplaceLinks:
return f'{m.group(1)}`@{name}`_'
def extra(self):
return '\n\n' + '\n'.join(self.links) + '\n'
return '\n\n' + '\n'.join(sorted(self.links)) + '\n'
description = 'Data validation and settings management using python 3.6 type hinting'