[python-arrayfire] 01/04: Provide the sphinx documentation in -doc package.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri Sep 16 14:02:53 UTC 2016


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

ghisvail-guest pushed a commit to annotated tag debian/3.3.20160624-2
in repository python-arrayfire.

commit 413b6259f3956e8d137b92435ca788bfc02a2e9c
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Sep 16 12:20:22 2016 +0100

    Provide the sphinx documentation in -doc package.
---
 debian/control                       |  5 ++++-
 debian/python-arrayfire-doc.doc-base | 11 +++++++++++
 debian/python-arrayfire-doc.docs     |  1 +
 debian/rules                         |  7 ++++++-
 4 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index cc69601..7d31816 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,9 @@ Build-Depends: debhelper (>= 9),
                dh-python,
                libarrayfire-unified3 (>= 3.3.0+dfsg1-1~),
                python-all,
+               python-numpydoc,
                python-setuptools,
+               python-sphinx,
                python3-all,
                python3-setuptools
 Standards-Version: 3.9.8
@@ -60,7 +62,8 @@ Package: python-arrayfire-doc
 Architecture: all
 Multi-Arch: foreign
 Section: doc
-Depends: ${misc:Depends}
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends}
 Description: examples for the ArrayFire Python wrappers
  ArrayFire is a high performance software library for parallel computing
  with an easy-to-use API. Its array based function set makes parallel
diff --git a/debian/python-arrayfire-doc.doc-base b/debian/python-arrayfire-doc.doc-base
new file mode 100644
index 0000000..22e1f9c
--- /dev/null
+++ b/debian/python-arrayfire-doc.doc-base
@@ -0,0 +1,11 @@
+Document: python-arrayfire-doc
+Title: ArrayFire Python documentation
+Author: Pavan Yalamanchili
+Abstract: This is the reference documentation for the Python bindings to the
+ ArrayFire library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-arrayfire-doc/html/index.html
+Files: /usr/share/doc/python-arrayfire-doc/html/*.html
+
diff --git a/debian/python-arrayfire-doc.docs b/debian/python-arrayfire-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-arrayfire-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
index ae9b5a4..3795891 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,12 @@
 export PYBUILD_NAME=arrayfire
 
 %:
-	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 -b html docs build/html
 
 override_dh_auto_test:
 	PYBUILD_SYSTEM=custom \

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



More information about the debian-science-commits mailing list