[Python-modules-commits] [python-pysnmp4] 06/11: Switch to Sphinx to build docmentation
Vincent Bernat
bernat at moszumanska.debian.org
Sat Jul 2 14:13:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
bernat pushed a commit to branch master
in repository python-pysnmp4.
commit f35c8ce083ae133623ce5cf02539453088271beb
Author: Vincent Bernat <vincent at bernat.im>
Date: Sat Jul 2 15:57:43 2016 +0200
Switch to Sphinx to build docmentation
---
debian/changelog | 1 +
debian/control | 1 +
debian/python-pysnmp4-doc.doc-base | 4 ++--
debian/python-pysnmp4-doc.install | 2 --
debian/rules | 8 +++++++-
5 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index afc213b..d6f459e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ python-pysnmp4 (4.3.2-1) UNRELEASED; urgency=medium
* New upstream release.
* Remove manual pages for tools not shipped anymore by PySNMP.
* Switch buildsystem to pybuild.
+ * Switch to sphinx to build documentation.
* Give ownership to DPMT.
* Bump Standards-Version.
diff --git a/debian/control b/debian/control
index 80e4c88..94a55f8 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Uploaders: Jan Lübbe <jluebbe at debian.org>,
Standards-Version: 3.9.6
Build-Depends: debhelper (>= 9),
dh-python,
+ python-sphinx, python-sphinx-rtd-theme,
python-all (>= 2.6.6-3~), python3-all,
python-setuptools, python3-setuptools,
python-crypto, python3-crypto,
diff --git a/debian/python-pysnmp4-doc.doc-base b/debian/python-pysnmp4-doc.doc-base
index 86ff039..ab15c71 100644
--- a/debian/python-pysnmp4-doc.doc-base
+++ b/debian/python-pysnmp4-doc.doc-base
@@ -5,5 +5,5 @@ Abstract: This manual describes pysnmp4 tools for Python and how to use it.
Section: Programming
Format: HTML
-Index: /usr/share/doc/python-pysnmp4-doc/pysnmp-tutorial.html
-Files: /usr/share/doc/python-pysnmp4-doc/*.html
+Index: /usr/share/doc/python-pysnmp4-doc/html/index.html
+Files: /usr/share/doc/python-pysnmp4-doc/html/*.html
diff --git a/debian/python-pysnmp4-doc.install b/debian/python-pysnmp4-doc.install
index 9563e39..91f347a 100644
--- a/debian/python-pysnmp4-doc.install
+++ b/debian/python-pysnmp4-doc.install
@@ -1,4 +1,2 @@
-docs/*.html usr/share/doc/python-pysnmp4-doc/
-docs/*.gif usr/share/doc/python-pysnmp4-doc/
docs/mibs/*.txt usr/share/doc/python-pysnmp4-doc/
diff --git a/debian/rules b/debian/rules
index ecd6c55..b2d6224 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,14 @@
export PYBUILD_NAME=pysnmp4
%:
- dh $@ --with python2,python3 --buildsystem=pybuild
+ dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
# There are no unittests, but some documentation string may be
# executed while they are not really unittests.
override_dh_auto_test:
+
+override_dh_installdocs:
+ dh_installdocs
+ PYTHONPATH=. sphinx-build -N -q -E -b html docs/source/ \
+ debian/python-pysnmp4-doc/usr/share/doc/python-pysnmp4-doc/html/
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pysnmp4.git
More information about the Python-modules-commits
mailing list