[Python-modules-commits] [python-qtconsole] 01/01: add the documentation package

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Wed Jun 29 11:50:50 UTC 2016


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

picca pushed a commit to branch master
in repository python-qtconsole.

commit 7f7c22e07baaa4a0138048345c8c675e5c15fe91
Author: Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
Date:   Wed Jun 29 09:11:39 2016 +0200

    add the documentation package
---
 debian/control                       | 19 +++++++++++++++++++
 debian/python-qtconsole-doc.doc-base |  9 +++++++++
 debian/rules                         | 13 ++++++++++++-
 3 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 6ca327a..34b2e23 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,8 @@ Build-Depends: debhelper (>= 9),
                python-pyqt5,
                python-pyqt5.qtsvg,
                python-setuptools,
+               python-sphinx,
+	       python-sphinx-rtd-theme,
                python-traitlets,
                python3-all,
                python3-ipykernel,
@@ -92,3 +94,20 @@ Description: Jupyter - Qt console (binaries)
  This package contains the qtconsole binaries for the Python 3
  interpreter.
 
+Package: python-qtconsole-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Jupyter - Qt console (documentation)
+ IPython can be used as a replacement for the standard Python shell,
+ or it can be used as a complete working environment for scientific
+ computing (like Matlab or Mathematica) when paired with the standard
+ Python scientific and numerical tools. It supports dynamic object
+ introspections, numbered input/output prompts, a macro system,
+ session logging, session restoring, complete system shell access,
+ verbose and colored traceback reports, auto-parentheses, auto-quoting,
+ and is embeddable in other Python programs.
+ .
+ This package contains the qtconsole library documentation.
+
+
diff --git a/debian/python-qtconsole-doc.doc-base b/debian/python-qtconsole-doc.doc-base
new file mode 100644
index 0000000..b4de534
--- /dev/null
+++ b/debian/python-qtconsole-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-qtconsole-doc
+Title: Jupyter QtConsole Documentation
+Author: Jupyter Development Team
+Abstract: Sphinx documentation for Jupyter QtConsole
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-qtconsole-doc/html/index.html
+Files: /usr/share/doc/python-qtconsole-doc/html/*
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index ee5fec9..6585b1e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,11 @@ export PYBUILD_NAME=qtconsole
 export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_clean:
+	dh_clean
+	rm -rf docs/build
 
 override_dh_auto_install:
 	dh_auto_install
@@ -19,3 +23,10 @@ override_dh_install:
 	dh_install -p jupyter-qtconsole \
                    examples/jupyter-qtconsole.desktop \
 		   usr/share/applications
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+	cd docs && PYTHONPATH=$(CURDIR) $(MAKE) html
+	dh_install -p python-qtconsole-doc docs/build/html usr/share/doc/python-qtconsole-doc/
+	dh_sphinxdoc -O--buildsystem=pybuild
+endif

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



More information about the Python-modules-commits mailing list