[Python-modules-commits] [python-fudge] 08/15: Build documentation in dh_auto_build step
Jan Dittberner
jandd at moszumanska.debian.org
Wed Dec 30 15:20:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
jandd pushed a commit to branch master
in repository python-fudge.
commit a4d11442234404c1e81eb8e08b847327c1aa8aaa
Author: Jan Dittberner <jandd at debian.org>
Date: Wed Dec 30 15:51:40 2015 +0100
Build documentation in dh_auto_build step
---
debian/changelog | 1 +
debian/python-fudge-doc.docs | 1 +
debian/rules | 13 +++++++------
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 16ad0b2..9ff1ddf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ python-fudge (1.0.3-4) UNRELEASED; urgency=low
* Run wrap-and-sort
* Switch to dh-python/pybuild
* Update copyright years
+ * Build documentation in dh_auto_build step
-- Jan Dittberner <jandd at debian.org> Wed, 30 Dec 2015 15:39:57 +0100
diff --git a/debian/python-fudge-doc.docs b/debian/python-fudge-doc.docs
new file mode 100644
index 0000000..2981a3c
--- /dev/null
+++ b/debian/python-fudge-doc.docs
@@ -0,0 +1 @@
+docs/.build/html
diff --git a/debian/rules b/debian/rules
index 6ba4186..12053b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,13 +9,14 @@ LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)"
-override_dh_auto_install:
- sphinx-build $(SPHINXOPTS) -b html -a -c docs docs \
- $(CURDIR)/debian/python-fudge-doc/usr/share/doc/python-fudge-doc/html
- dh_auto_install
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf $(CURDIR)/docs/.build
+ find -name '._*' -delete
-override_dh_sphinxdoc:
- dh_sphinxdoc -ppython-fudge-doc
+override_dh_auto_build:
+ sphinx-build $(SPHINXOPTS) -b html -a -c docs docs \
+ $(CURDIR)/docs/.build/html
override_dh_compress:
dh_compress -i -X.rst -X.js -X.html -X.txt
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-fudge.git
More information about the Python-modules-commits
mailing list