[Python-modules-commits] [python-measurement] 12/14: Build documentation in override_dh_sphinxdoc.
Michael Fladischer
fladi at moszumanska.debian.org
Sat Jan 13 16:44:33 UTC 2018
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch debian/master
in repository python-measurement.
commit 2581ffc62165f63014e2916fde029214bc57e528
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Sat Jan 13 17:39:35 2018 +0100
Build documentation in override_dh_sphinxdoc.
---
debian/changelog | 1 +
debian/python-measurement-doc.docs | 1 -
debian/rules | 7 ++++++-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1c3931c..66e4b0d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ python-measurement (2.0.1-1) UNRELEASED; urgency=low
* Enable autopkgtest-pkg-python testsuite.
* Add python(3)-pbr to Build-Depends.
* Fix name of README.rst (formerly readme.rst).
+ * Build documentation in override_dh_sphinxdoc.
-- Michael Fladischer <fladi at debian.org> Wed, 10 Jan 2018 16:51:28 +0100
diff --git a/debian/python-measurement-doc.docs b/debian/python-measurement-doc.docs
deleted file mode 100644
index 2981a3c..0000000
--- a/debian/python-measurement-doc.docs
+++ /dev/null
@@ -1 +0,0 @@
-docs/.build/html
diff --git a/debian/rules b/debian/rules
index 66a1471..965e9e2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,12 @@ export PYBUILD_NAME=measurement
override_dh_auto_build:
dh_auto_build
- PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
+ PYTHONPATH=. sphinx-build -b html -N docs/ $(CURDIR)/debian/python-measurement-doc/usr/share/doc/python-measurement-doc/html
+ dh_sphinxdoc
+endif
override_dh_clean:
dh_clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-measurement.git
More information about the Python-modules-commits
mailing list