Karsten Schöke pushed to branch master at Debian Med / python-cogent


Commits:
e5461ac7 by Karsten Schöke at 2026-06-01T13:38:16+02:00
remove date-based Sphinx release string for reproducible builds

The upstream documentation configuration uses a date-based value for the
Sphinx release variable. This value is incorporated into generated
documentation metadata, including the HTML title.

Using a date-derived release string can cause build outputs to vary between
builds, which is undesirable for Debian's reproducible-builds effort.

Replace the date-based release identifier with the package version provided
by the Debian build environment. This ensures that the generated
documentation contains stable and deterministic version information while
still identifying the packaged software version.

This change affects documentation metadata only and has no impact on the
runtime behaviour of the software.

- - - - -
3ebe5801 by Karsten Schöke at 2026-06-01T13:38:34+02:00
Update changelog for 2026.5.25a0+dfsg-2 release

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/Use-package-version-instead-of-date-based-Sphinx.patch
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-cogent (2026.5.25a0+dfsg-2) unstable; urgency=medium
+
+  * Team upload.
+  * insert Use-package-version-instead-of-date-based-Sphinx.patch 
+
+ -- Karsten Schöke <[email protected]>  Mon, 01 Jun 2026 13:38:26 
+0200
+
 python-cogent (2026.5.25a0+dfsg-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/Use-package-version-instead-of-date-based-Sphinx.patch
=====================================
@@ -0,0 +1,49 @@
+From: =?utf-8?q?Karsten_Sch=C3=B6ke?= <[email protected]>
+Date: Mon, 1 Jun 2026 11:02:23 +0200
+Subject: Use package version instead of date-based Sphinx release
+The upstream documentation configuration uses a date-based value for the
+Sphinx release variable. This value is incorporated into generated
+documentation metadata, including the HTML title.
+
+Using a date-derived release string can cause build outputs to vary between
+builds, which is undesirable for Debian's reproducible-builds effort.
+
+Replace the date-based release identifier with the package version provided
+by the Debian build environment. This ensures that the generated
+documentation contains stable and deterministic version information while
+still identifying the packaged software version.
+
+This change affects documentation metadata only and has no impact on the
+runtime behaviour of the software.
+
+Forwarded: not-needed
+---
+ doc/conf.py | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index 8e04268..056a2f5 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -1,6 +1,6 @@
+ import datetime
+ import pathlib
+-
++import os
+ 
+ def make_nbsphinx_thumbnails():
+     """returns dict of {path: '_images/{path.stem}'"""
+@@ -18,10 +18,9 @@ project = "cogent3"
+ copyright = f"2020-{year}, cogent3 Team"
+ author = "Gavin Huttley"
+ 
+-# The full version, including alpha/beta/rc tags
+-# Use calendar versioning
+-release = today.strftime("%Y.%m.%d")
+-
++# use debian version number
++release = os.environ.get("DEB_VERSION", "")
++version = release
+ 
+ # -- General configuration ---------------------------------------------------
+ # 
https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 fix-lazy-imports-for-Sphinx-autodoc-builds.patch
 Work-around-failure-in-sphinx-doc-processing.patch
 Fix-broken-interpreter-lines.patch
+Use-package-version-instead-of-date-based-Sphinx.patch


=====================================
debian/rules
=====================================
@@ -3,6 +3,11 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+
+include /usr/share/dpkg/default.mk
+include /usr/share/dpkg/pkg-info.mk
+
+export DEB_VERSION
 export LC_ALL=C.UTF-8
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
@@ -20,8 +25,6 @@ ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf mipsel s390x 
mips64el))
 export PYBUILD_DISABLE=test
 endif
 
-include /usr/share/dpkg/default.mk
-
 %:
        dh $@ --with sphinxdoc,numpy3 --buildsystem=pybuild
 



View it on GitLab: 
https://salsa.debian.org/med-team/python-cogent/-/compare/aea7cec717ca5828587e9bc2b94ecae72c5072b5...3ebe5801a72181421649f00466179e7791f3192d

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/python-cogent/-/compare/aea7cec717ca5828587e9bc2b94ecae72c5072b5...3ebe5801a72181421649f00466179e7791f3192d
You're receiving this email because of your account on salsa.debian.org. Manage 
all notifications: https://salsa.debian.org/-/profile/notifications | Help: 
https://salsa.debian.org/help


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to