[Python-modules-commits] [python-qtawesome] 03/04: Add documentation package.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:47:42 UTC 2016


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

ghisvail-guest pushed a commit to branch master
in repository python-qtawesome.

commit 56f9b0d30e5ec79cc94a2518bd4f29456327144a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sun Feb 28 20:28:07 2016 +0000

    Add documentation package.
---
 debian/clean                         |  1 +
 debian/control                       | 14 ++++++++++++++
 debian/python-qtawesome-doc.doc-base | 10 ++++++++++
 debian/python-qtawesome-doc.docs     |  1 +
 debian/python-qtawesome-doc.examples |  1 +
 debian/rules                         |  6 +++++-
 6 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/debian/clean b/debian/clean
index 3feb78a..aab86b4 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1 +1,2 @@
 *.egg-info/
+build/html
diff --git a/debian/control b/debian/control
index aaf35f0..9cd6aa5 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends: debhelper (>= 9),
                dh-python,
                python-all,
                python-setuptools,
+               python-sphinx,
                python3-all,
                python3-setuptools
 Standards-Version: 3.9.7
@@ -21,6 +22,7 @@ Architecture: all
 Depends: ${misc:Depends},
          ${python:Depends},
          python-qtawesome-common
+Suggests: python-qtawesome-doc
 Description: iconic fonts in PyQt and PySide applications (Python 2)
  QtAwesome enables iconic fonts such as Font Awesome and Elusive Icons in
  PyQt and PySide applications.
@@ -32,6 +34,7 @@ Architecture: all
 Depends: ${misc:Depends},
          ${python3:Depends},
          python-qtawesome-common
+Suggests: python-qtawesome-doc
 Description: iconic fonts in PyQt and PySide applications (Python 3)
  QtAwesome enables iconic fonts such as Font Awesome and Elusive Icons in
  PyQt and PySide applications.
@@ -47,3 +50,14 @@ Description: common files for QtAwesome
  PyQt and PySide applications.
  .
  This package provides the files common to all QtAwesome Python packages.
+
+Package: python-qtawesome-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
+Description: documentation and examples for QtAwesome
+ QtAwesome enables iconic fonts such as Font Awesome and Elusive Icons in
+ PyQt and PySide applications.
+ .
+ This package provides the documentation and examples for QtAwesome.
diff --git a/debian/python-qtawesome-doc.doc-base b/debian/python-qtawesome-doc.doc-base
new file mode 100644
index 0000000..6cbf2f0
--- /dev/null
+++ b/debian/python-qtawesome-doc.doc-base
@@ -0,0 +1,10 @@
+Document: python-qtawesome-doc
+Title: QtAwesome Documentation
+Author: The Spyder Development Team
+Abstract: This is the reference documentation of the QtAwesome Python
+ package.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-qtawesome-doc/html/index.html
+Files: /usr/share/doc/python-qtawesome-doc/html/*.html
diff --git a/debian/python-qtawesome-doc.docs b/debian/python-qtawesome-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-qtawesome-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/python-qtawesome-doc.examples b/debian/python-qtawesome-doc.examples
new file mode 100644
index 0000000..f9882ef
--- /dev/null
+++ b/debian/python-qtawesome-doc.examples
@@ -0,0 +1 @@
+example.py
diff --git a/debian/rules b/debian/rules
index 4a84de5..c526588 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,4 +7,8 @@ export PYBUILD_NAME=qtawesome
 export PYBUILD_DISABLE=test
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/source build/html

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



More information about the Python-modules-commits mailing list