summaryrefslogtreecommitdiff
path: root/python3-logbook/reproducibility.patch
blob: 7ebdf199953d0ac963d30f6b646d8776915eea2f (plain)
    1 From 7b51f1adbdfd71180b8da9b1462552db32350b1d Mon Sep 17 00:00:00 2001
    2 From: Jonas Witschel <diabonas@archlinux.org>
    3 Date: Wed, 22 Jul 2020 20:37:56 +0200
    4 Subject: [PATCH] setup.py: make ordering of requires.txt reproducible
    5 
    6 Dependencies are stored in unordered sets, leading to a varying requires.txt
    7 between different builds. Order the entries to make sure that the file is
    8 reproducible bit for bit.
    9 ---
   10  setup.py | 3 +++
   11  1 file changed, 3 insertions(+)
   12 
   13 diff --git a/setup.py b/setup.py
   14 index 2f2a5e3..dd00a0c 100644
   15 --- a/setup.py
   16 +++ b/setup.py
   17 @@ -176,6 +176,9 @@ def status_msgs(*msgs):
   18  
   19  extras_require['all'] = set(chain.from_iterable(extras_require.values()))
   20  
   21 +# sort items to make requires.txt reproducible
   22 +extras_require = { key: sorted(value) for key, value in extras_require.items() }
   23 +
   24  
   25  def run_setup(with_cext):
   26      kwargs = {}

Generated by cgit