[Python-modules-commits] [case] 01/08: Add documentation package

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Mon Feb 20 08:17:05 UTC 2017


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

mans0954 pushed a commit to branch master
in repository case.

commit 199608b5ed635a6204b76e7fc08bf45de4f773f9
Author: Christopher Hoskin <mans0954 at debian.org>
Date:   Thu Feb 16 08:45:55 2017 +0000

    Add documentation package
---
 debian/changelog                |  6 ++++++
 debian/control                  | 15 ++++++++++++++-
 debian/python-case-doc.doc-base |  9 +++++++++
 debian/python-case-doc.docs     |  1 +
 debian/rules                    | 11 ++++++++++-
 5 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d4c9112..3117824 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+case (1.5.2+dfsg-2) UNRELEASED; urgency=medium
+
+  * Add documentation package 
+
+ -- Christopher Hoskin <mans0954 at debian.org>  Thu, 16 Feb 2017 08:44:14 +0000
+
 case (1.5.2+dfsg-1) unstable; urgency=low
 
   * source package automatically created by stdeb 0.8.5. Closes: #854891
diff --git a/debian/control b/debian/control
index f9a5deb..f628790 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Uploaders: Christopher Hoskin <mans0954 at debian.org>
 Section: python
 Priority: optional
 Build-Depends: dh-python, python3-setuptools, python3-all, debhelper (>= 9),
- python3-nose, python3-six
+ python3-nose, python3-six, python3-sphinx, python3-sphinx-celery
 Standards-Version: 3.9.8
 Homepage: http://github.com/celery/case
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/case.git
@@ -22,3 +22,16 @@ Description: Python unittest Utilities
   * case.mock
   * case.utils
 
+Package: python-case-doc
+Architecture: all
+Section: doc
+Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+Description: Python unittest Utilities (documentation)
+ Python unittest Utilities. Includes:
+ .
+  * case.case
+  * case.skip
+  * case.mock
+  * case.utils
+ .
+ This is the documentation package.
diff --git a/debian/python-case-doc.doc-base b/debian/python-case-doc.doc-base
new file mode 100644
index 0000000..52a536c
--- /dev/null
+++ b/debian/python-case-doc.doc-base
@@ -0,0 +1,9 @@
+Document: case
+Title: case documentation
+Author: Ask Solem & contributors
+Abstract: This document describes how to use case Python unittest Utilities 
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-case-doc/html/index.html
+Files: /usr/share/doc/python-case-doc/html/*.html 
diff --git a/debian/python-case-doc.docs b/debian/python-case-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-case-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
index e6543e5..3561e9a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,14 @@
 # Sat, 11 Feb 2017 15:42:43 +0000
 export PYBUILD_NAME=case
 %:
-	dh $@ --with python3 --buildsystem=pybuild
+	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build: export http_proxy=127.0.0.1:9
+override_dh_auto_build: export https_proxy=127.0.0.1:9
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. sphinx-build -N -bhtml docs/ build/html # HTML generator
+	PYTHONPATH=. sphinx-build -N -bman docs/ build/man # Manpage generator
+
+
 

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



More information about the Python-modules-commits mailing list