[Python-modules-commits] r34247 - in packages/wtforms/trunk/debian (changelog rules)

bernat at users.alioth.debian.org bernat at users.alioth.debian.org
Mon Sep 14 19:35:21 UTC 2015


    Date: Monday, September 14, 2015 @ 19:35:20
  Author: bernat
Revision: 34247

Make the build reproducible (Sphinx documentation)

Modified:
  packages/wtforms/trunk/debian/changelog
  packages/wtforms/trunk/debian/rules

Modified: packages/wtforms/trunk/debian/changelog
===================================================================
--- packages/wtforms/trunk/debian/changelog	2015-09-14 19:21:29 UTC (rev 34246)
+++ packages/wtforms/trunk/debian/changelog	2015-09-14 19:35:20 UTC (rev 34247)
@@ -9,6 +9,9 @@
   * Switched to 3.0 quilt patch format
   * Added a patch to fix failing tests due to Django not being setup
   * Created separate documentation package
+  * Make the build reproducible by using last changelog entry as today
+    date for documentation. Closes: #788599. Thanks to Juan Picca for the
+    patch.
 
  -- Orestis Ioannou <orestis at oioannou.com>  Mon, 14 Sep 2015 17:51:19 +0200
 

Modified: packages/wtforms/trunk/debian/rules
===================================================================
--- packages/wtforms/trunk/debian/rules	2015-09-14 19:21:29 UTC (rev 34246)
+++ packages/wtforms/trunk/debian/rules	2015-09-14 19:35:20 UTC (rev 34247)
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+SPHINXOPTS := -D today=\"$(BUILD_DATE)\"
+
 export PYBUILD_NAME=wtforms
 %:
 	dh $@ --with sphinxdoc,python2,python3 --buildsystem=pybuild $@
@@ -7,7 +11,7 @@
 override_dh_auto_build:
 	dh_auto_build
 	rm docs/_templates/layout.html
-	cd docs && make html
+	cd docs && make html SPHINXOPTS="$(SPHINXOPTS)"
 
 override_dh_auto_install:
 	dh_auto_install




More information about the Python-modules-commits mailing list