[Python-modules-commits] [python-amqp] 09/10: Let /usr/share/dpkg/pkg-info.mk export SOURCE_DATE_EPOCH so sphinx can pick it up directly.

Michael Fladischer fladi at moszumanska.debian.org
Wed Nov 1 17:26:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to annotated tag debian/2.2.2-1_exp1
in repository python-amqp.

commit ff7444648eba2e99a85e9f5e9358e38e03bfaa1a
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Wed Nov 1 18:04:52 2017 +0100

    Let /usr/share/dpkg/pkg-info.mk export SOURCE_DATE_EPOCH so sphinx can pick it up directly.
---
 debian/changelog | 2 ++
 debian/rules     | 5 ++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 608d552..398c997 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ python-amqp (2.2.2-1~exp1) UNRELEASED; urgency=low
   * Raise minimum Python versions to 2.7 and 3.4.
   * Remove trailing whitespaces from d/changelog.
   * Replace Priority extra with optional as required by policy 4.0.1.
+  * Let /usr/share/dpkg/pkg-info.mk export SOURCE_DATE_EPOCH so sphinx
+    can pick it up directly.
 
  -- Michael Fladischer <fladi at debian.org>  Wed, 01 Nov 2017 17:48:01 +0100
 
diff --git a/debian/rules b/debian/rules
index 83b24ec..348224e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
-BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+include /usr/share/dpkg/pkg-info.mk
 
 export PYBUILD_NAME=amqp
 export PYBUILD_BEFORE_TEST=cp -r {dir}/t {build_dir}
@@ -15,7 +14,7 @@ export PYBUILD_AFTER_TEST=rm -rf {build_dir}/t
 
 override_dh_auto_build:
 	dh_auto_build
-	PYTHONPATH=. sphinx-build -D today="$(BUILD_DATE)" -b html -N docs/ docs/.build/html
+	PYTHONPATH=. sphinx-build -b html -N docs/ docs/.build/html
 
 override_dh_clean:
 	rm -rf docs/.build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-amqp.git



More information about the Python-modules-commits mailing list