[Python-modules-commits] [python-django-treebeard] 12/13: Build documentation in override_dh_sphinxdoc.

Michael Fladischer fladi at moszumanska.debian.org
Sun Jan 21 20:21:28 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-django-treebeard.

commit 3b977f726e9429e8cab6749548176314515c22a0
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Sun Jan 21 15:56:57 2018 +0100

    Build documentation in override_dh_sphinxdoc.
---
 debian/changelog                        | 1 +
 debian/python-django-treebeard-doc.docs | 1 -
 debian/rules                            | 6 +++++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 38a62ff..b5b30db 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ python-django-treebeard (4.2.0+dfsg-1) UNRELEASED; urgency=low
   * Bump Standards-Version to 4.1.3.
   * Run wrap-and-sort -bast to reduce diff size of future changes.
   * Enable autopkgtest-pkg-python testsuite.
+  * Build documentation in override_dh_sphinxdoc.
 
  -- Michael Fladischer <fladi at debian.org>  Sat, 13 Jan 2018 18:59:35 +0100
 
diff --git a/debian/python-django-treebeard-doc.docs b/debian/python-django-treebeard-doc.docs
deleted file mode 100644
index 2981a3c..0000000
--- a/debian/python-django-treebeard-doc.docs
+++ /dev/null
@@ -1 +0,0 @@
-docs/.build/html
diff --git a/debian/rules b/debian/rules
index a7b56a4..c236d51 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,6 @@ override_dh_auto_clean:
 
 override_dh_auto_build:
 	dh_auto_build
-	PYTHONPATH=. sphinx-build -b html -d docs/.build/doctrees docs/source docs/.build/html
 	set -e; \
 	for loc in treebeard/locale/*; do \
 		test -r $$loc/LC_MESSAGES/django.po &&\
@@ -20,6 +19,11 @@ override_dh_auto_build:
 			python3 setup.py compile_catalog --directory treebeard/locale/ --locale $$(basename $$loc) --domain djangojs; \
 	done
 
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
+	PYTHONPATH=. sphinx-build -b html -N docs/source/ $(CURDIR)/debian/python-django-treebeard-doc/usr/share/doc/python-django-treebeard-doc/html
+	dh_sphinxdoc
+endif
 
 override_dh_auto_install:
 	dh_auto_install

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



More information about the Python-modules-commits mailing list