On 2026-05-02, Vagrant Cascadian wrote: > On 2025-03-31, Chris Lamb wrote: >> Whilst working on the Reproducible Builds effort [0], we noticed that >> python-pytest-shell-utilities could not be built reproducibly. >> >> This was because of two reasons. First, the documentation used the >> current build date instead of seeding it from SOURCE_DATE_EPOCH, and >> then the 'towncrier' Sphinx extension was adding its own date when >> adding stuff like "[UNRELEASED DRAFT]". > > I can confirm that the this issue is still present and that the proposed > patch still solves the issue. I also just confirmed that it builds > successfully removing python3-sphinxcontrib-towncrier from the > Build-Depends also works with this patch applied. > > I would like to perform an NMU fixing this sometime in the coming week > or two, unless there are any outstanding concerns?
I have uploaded an NMU to DELAYED/10. debdiff attached. live well, vagrant
diff -Nru python-pytest-shell-utilities-1.9.7/debian/changelog python-pytest-shell-utilities-1.9.7/debian/changelog --- python-pytest-shell-utilities-1.9.7/debian/changelog 2025-12-26 13:43:06.000000000 -0800 +++ python-pytest-shell-utilities-1.9.7/debian/changelog 2026-05-13 15:19:55.000000000 -0700 @@ -1,3 +1,16 @@ +python-pytest-shell-utilities (1.9.7-3.1) unstable; urgency=medium + + * Non-maintainer upload. + + [ Chris Lamb ] + * Remove timestamps from documentation. (Closes: #1101742) + + [ Vagrant Cascadian ] + * debian/control: Drop unused python3-sphinxcontrib-towncrier from + Build-Depends. + + -- Vagrant Cascadian <[email protected]> Wed, 13 May 2026 15:19:55 -0700 + python-pytest-shell-utilities (1.9.7-3) unstable; urgency=medium * Team Upload diff -Nru python-pytest-shell-utilities-1.9.7/debian/control python-pytest-shell-utilities-1.9.7/debian/control --- python-pytest-shell-utilities-1.9.7/debian/control 2025-12-26 12:24:22.000000000 -0800 +++ python-pytest-shell-utilities-1.9.7/debian/control 2026-05-13 15:19:55.000000000 -0700 @@ -20,7 +20,6 @@ python3-setuptools-scm, python3-sphinx, python3-sphinx-copybutton, - python3-sphinxcontrib-towncrier, python3-sphinxcontrib.spelling, Standards-Version: 4.7.2 Homepage: https://github.com/saltstack/pytest-shell-utilities diff -Nru python-pytest-shell-utilities-1.9.7/debian/patches/Reproducible-Builds.patch python-pytest-shell-utilities-1.9.7/debian/patches/Reproducible-Builds.patch --- python-pytest-shell-utilities-1.9.7/debian/patches/Reproducible-Builds.patch 1969-12-31 16:00:00.000000000 -0800 +++ python-pytest-shell-utilities-1.9.7/debian/patches/Reproducible-Builds.patch 2026-05-13 15:19:55.000000000 -0700 @@ -0,0 +1,47 @@ +From: Chris Lamb <[email protected]> +Date: Mon, 31 Mar 2025 11:20:29 +0100 +X-Dgit-Generated: 1.9.7-3.1 67afd01b91e6a33bcc36f1e7794597a14c5bad96 +Subject: Remove timestamps from documentation. (Closes: #1101742) + +Whilst working on the Reproducible Builds effort [0], we noticed that +python-pytest-shell-utilities could not be built reproducibly. + +This was because of two reasons. First, the documentation used the +current build date instead of seeding it from SOURCE_DATE_EPOCH, and +then the 'towncrier' Sphinx extension was adding its own date when +adding stuff like "[UNRELEASED DRAFT]". + +--- + +diff --git a/docs/conf.py b/docs/conf.py +index b90d92f..6884108 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -14,6 +14,7 @@ + import datetime + import os + import pathlib ++import time + import sys + + import pytest +@@ -45,7 +46,10 @@ dist = distribution("pytest-shell-utilities") + + + # -- Project information ----------------------------------------------------- +-this_year = datetime.datetime.today().year ++this_year = datetime.datetime.fromtimestamp( ++ int(os.environ.get('SOURCE_DATE_EPOCH', time.time())), ++ tz=datetime.timezone.utc, ++).year + if this_year == 2021: + copyright_year = 2021 + else: +@@ -83,7 +87,6 @@ extensions = [ + "sphinx.ext.coverage", + "sphinx_copybutton", + "sphinxcontrib.spelling", +- "sphinxcontrib.towncrier", + ] + + # Add any paths that contain templates here, relative to this directory. diff -Nru python-pytest-shell-utilities-1.9.7/debian/patches/series python-pytest-shell-utilities-1.9.7/debian/patches/series --- python-pytest-shell-utilities-1.9.7/debian/patches/series 2025-12-26 12:31:31.000000000 -0800 +++ python-pytest-shell-utilities-1.9.7/debian/patches/series 2026-05-13 15:19:55.000000000 -0700 @@ -1,2 +1,3 @@ 0001-Use-local-objects.inv-in-intersphinx-mapping.patch 0002_pytest9.0.01.patch +Reproducible-Builds.patch
signature.asc
Description: PGP signature

