[Python-modules-commits] [pydbus] 01/02: Generate HTML docs from rst files

Alberto Caso acaso-guest at moszumanska.debian.org
Sun Dec 11 20:07:44 UTC 2016


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

acaso-guest pushed a commit to branch master
in repository pydbus.

commit 28b4e29a08c5863c7e6adf6f4203241fc2a416b6
Author: Alberto Caso <alberto.caso at juntaex.es>
Date:   Sun Dec 11 21:04:24 2016 +0100

    Generate HTML docs from rst files
---
 debian/control                | 1 +
 debian/python-pydbus-doc.docs | 1 +
 debian/rules                  | 7 +++++++
 3 files changed, 9 insertions(+)

diff --git a/debian/control b/debian/control
index 15cb508..5fb22e4 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends: dbus,
                python-gi,
                python-setuptools,
                python3-all,
+               python3-docutils | python-docutils,
                python3-gi,
                python3-setuptools
 Standards-Version: 3.9.8
diff --git a/debian/python-pydbus-doc.docs b/debian/python-pydbus-doc.docs
index 529e3bf..ebfcbcb 100644
--- a/debian/python-pydbus-doc.docs
+++ b/debian/python-pydbus-doc.docs
@@ -1,3 +1,4 @@
+README.html
 README.rst
 doc/*
 pydbus/examples/
diff --git a/debian/rules b/debian/rules
index 029442d..c433ccd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,13 @@ override_dh_auto_test:
 	PYBUILD_TEST_ARGS="debian/run_tests.sh {interpreter}" \
 	dh_auto_test
 
+override_dh_installdocs:
+	rst2html README.rst README.html
+	rst2html doc/tutorial.rst doc/tutorial.html
+	dh_installdocs
+
 override_dh_auto_clean:
 	dh_auto_clean
 	rm -rf pydbus.egg-info
+	rm -f README.html
+	rm -f doc/tutorial.html

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



More information about the Python-modules-commits mailing list