Source: python-gitlab Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The year of the build is embedded in various documentation: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-gitlab.html /usr/share/doc/python-gitlab-doc/html/api/gitlab.v4.html 2018-2023,·python-gitlab·team. vs. 2018-2022,·python-gitlab·team. The attached patch fixes this by adjusting doc/conf.py to use the SOURCE_DATE_EPOCH environment variable to determine the date to use for the year. With this patch applied, python-gitlab should build reproducibly on tests.reproducible-builds.org again! Thanks for maintaining python-gitlab! live well, vagrant
From 89eea6707eb16e4a5403419ac105f94a992abb64 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Mon, 11 Apr 2022 23:57:38 +0000 Subject: [PATCH] doc/conf.py: Support SOURCE_DATE_EPOCH to set year. Without this, the documentation may contain a different copyright year depending on when it was built. https://reproducible-builds.org/docs/source-date-epoch/ --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 490f16f..c04d871 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,13 +18,14 @@ from __future__ import unicode_literals import os import sys from datetime import datetime +from time import time sys.path.append("../") sys.path.append(os.path.dirname(__file__)) import gitlab # noqa: E402. Needed purely for readthedocs' build on_rtd = os.environ.get("READTHEDOCS", None) == "True" -year = datetime.now().year +year = datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time()))).year # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the -- 2.30.2
signature.asc
Description: PGP signature