Accepting request 706098 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/706098
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-marshmallow?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2019-06-12 11:01:49 +00:00 committed by Git OBS Bridge
commit 23d1fd19ff
3 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 28 09:46:25 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to make build reproducible (boo#1047218)
-------------------------------------------------------------------
Fri May 17 14:38:06 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -28,6 +28,7 @@ Url: http://marshmallow.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/m/marshmallow/marshmallow-%{version}.tar.gz
# https://github.com/humitos/sphinx-version-warning/issues/22
Patch0: python-marshmallow-no-version-warning.patch
Patch1: reproducible.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -62,6 +63,7 @@ HTML Documentation and examples for %name.
%prep
%setup -q -n marshmallow-%{version}
%patch0 -p1
%patch1 -p1
%build
%python_build

26
reproducible.patch Normal file
View File

@ -0,0 +1,26 @@
https://github.com/marshmallow-code/marshmallow/pull/679.patch
From 8064d7e155a78cde6e7a2387ec365dcf0798641d Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Sun, 24 Sep 2017 21:54:43 +0200
Subject: [PATCH] Use Changelog date instead of build date
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good.
---
docs/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: marshmallow-2.19.2/docs/conf.py
===================================================================
--- marshmallow-2.19.2.orig/docs/conf.py
+++ marshmallow-2.19.2/docs/conf.py
@@ -57,7 +57,7 @@ master_doc = 'index'
# General information about the project.
project = u'marshmallow'
copyright = ' {0:%Y} <a href="https://stevenloria.com">Steven Loria</a>'.format(
- dt.datetime.utcnow()
+ dt.datetime.utcfromtimestamp(os.path.getmtime('../CHANGELOG.rst'))
)
version = release = marshmallow.__version__