[python-periodictable] 03/09: use sphinx to generate docs

Drew Parsons dparsons at moszumanska.debian.org
Sun Oct 29 16:01:25 UTC 2017


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

dparsons pushed a commit to tag debian/1.5.0-1
in repository python-periodictable.

commit b6de234606fb093dc17a4397a0c3af3078d87b27
Author: Drew Parsons <dparsons at emerall.com>
Date:   Sun Oct 29 22:41:16 2017 +0800

    use sphinx to generate docs
---
 debian/control |  6 +++++-
 debian/rules   | 12 +++++-------
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/debian/control b/debian/control
index 6147857..950a6d4 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,11 @@ Section: science
 Priority: optional
 Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
 Uploaders: Drew Parsons <dparsons at debian.org>, Stuart Prescott <stuart at debian.org>
-Build-Depends: debhelper (>= 10), dh-python, python-all, python-setuptools, python3-all, python3-setuptools
+Build-Depends: debhelper (>= 10),
+    dh-python,
+    python-all, python-setuptools,
+    python3-all, python3-setuptools,
+    python-sphinx, python3-sphinx
 Standards-Version: 4.1.1
 Homepage: http://www.reflectometry.org/danse/elements.html
 X-Python-Version: >= 2.6
diff --git a/debian/rules b/debian/rules
index 9a409d7..0d75716 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,13 +6,11 @@
 export PYBUILD_NAME=periodictable
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 
-# If you need to rebuild the Sphinx documentation
-# Add spinxdoc to the dh --with line
-#override_dh_auto_build:
-#	dh_auto_build
-#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml        docs/ build/html # HTML generator
-#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman        docs/ build/man # Manpage generator
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml        doc/ build/html # HTML generator
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -btexinfo        doc/ build/man # Info generator
 

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



More information about the debian-science-commits mailing list