From b8c3d8d676074dff21ae50ce65bff1c762cb0b64 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 8 Oct 2026 19:42:57 +0200 Subject: [PATCH] Make the build reproducible --- docs/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index ef2394e3..0f5a7a9a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,7 +3,9 @@ # licensed under MIT, Please consult LICENSE.txt for details # ################################################################## +import os import sys +import time import datetime project = u'PyWPS' @@ -11,7 +13,11 @@ license = ('This work is licensed under a Creative Commons Attribution 4.0 ' 'International License') -copyright = (f'Copyright (C) 2014-{datetime.datetime.now().year} PyWPS Development Team, ' +build_date = datetime.datetime.fromtimestamp( + int(os.environ.get('SOURCE_DATE_EPOCH', time.time())), + tz=datetime.timezone.utc, +) +copyright = (f'Copyright (C) 2014-{build_date.year} PyWPS Development Team, ' 'represented by Jachym Cepicky.') copyright += license