[Python-modules-commits] [pydispatcher] 03/05: Add -doc package

Neil Muller drnlmza-guest at moszumanska.debian.org
Fri Nov 6 15:06:22 UTC 2015


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

drnlmza-guest pushed a commit to branch master
in repository pydispatcher.

commit 82da4286dcc862b22c7c6ebd8dcb690ef84d5791
Author: Neil Muller <drnlmuller+debian at gmail.com>
Date:   Fri Nov 6 14:07:22 2015 +0200

    Add -doc package
---
 debian/clean                            |  1 +
 debian/control                          | 18 ++++++++++++++++++
 debian/copyright                        |  6 ++++--
 debian/python-pydispatcher-doc.doc-base |  9 +++++++++
 debian/python-pydispatcher-doc.docs     |  4 ++++
 debian/python-pydispatcher-doc.examples |  1 +
 debian/rules                            |  8 ++++++++
 7 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..e838882
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+docs/pydoc/*html
diff --git a/debian/control b/debian/control
index 12028cc..408f45e 100644
--- a/debian/control
+++ b/debian/control
@@ -19,6 +19,7 @@ Package: python-pydispatcher
 Architecture: all
 Depends: ${misc:Depends},
          ${python:Depends}
+Suggests: python-pydispatcher-doc
 Description: Python signal dispatching mechanism
  PyDispatcher provides the Python programmer with a
  multiple-producer-multiple-consumer signal-registration and routing
@@ -33,6 +34,7 @@ Package: python3-pydispatcher
 Architecture: all
 Depends: ${misc:Depends},
          ${python3:Depends}
+Suggests: python-pydispatcher-doc
 Description: Python 3 signal dispatching mechanism
  PyDispatcher provides the Python programmer with a
  multiple-producer-multiple-consumer signal-registration and routing
@@ -42,3 +44,19 @@ Description: Python 3 signal dispatching mechanism
  various applications.
  .
  This package contains the Python 3 version of PyDispatcher.
+
+Package: python-pydispatcher-doc
+Architecture: all
+Depends: ${misc:Depends}
+Section: doc
+Description: documentation for python-pydispatcher
+ PyDispatcher provides the Python programmer with a
+ multiple-producer-multiple-consumer signal-registration and routing
+ infrastructure for use in multiple contexts. The mechanism of PyDispatcher
+ started life as a highly rated recipe in the Python Cookbook. The project
+ aims to include various enhancements to the recipe developed during use in
+ various applications.
+ .
+ This package contains the documentation for PyDispatcher. It covers both
+ the Python 2 and Python 3 versions.
+
diff --git a/debian/copyright b/debian/copyright
index 853ffec..0f06411 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -8,6 +8,10 @@ Copyright: 2001-2006 Patrick K. O'Brien
            2006-2015 Mike C. Fletcher
 License: BSD-3-clause
 
+Files: docs/pydoc/*py
+Copyright: 2005-2015 Micheal C. Fletcher
+License: BSD-3-clause
+
 Files: debian/*
 Copyright: 2015 Neil Muller <drnlmuller+debian at gmail.com>
 License: BSD-3-clause
@@ -44,5 +48,3 @@ License: BSD-3-clause
 	STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 	OF THE POSSIBILITY OF SUCH DAMAGE. 
-
-
diff --git a/debian/python-pydispatcher-doc.doc-base b/debian/python-pydispatcher-doc.doc-base
new file mode 100644
index 0000000..0d1ae8d
--- /dev/null
+++ b/debian/python-pydispatcher-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-pydispatcher-doc
+Title: PyDispatcher Documentation
+Abstract: Documentation for PyDispatcher. Includes detailed documentation
+ of the PyDispatcher API and structure.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-pydispatcher-doc/index.html
+Files: /usr/share/doc/python-pydispatcher-doc/*.html
diff --git a/debian/python-pydispatcher-doc.docs b/debian/python-pydispatcher-doc.docs
new file mode 100644
index 0000000..7247e62
--- /dev/null
+++ b/debian/python-pydispatcher-doc.docs
@@ -0,0 +1,4 @@
+docs/index.html
+docs/style
+docs/images
+docs/pydoc/*html
diff --git a/debian/python-pydispatcher-doc.examples b/debian/python-pydispatcher-doc.examples
new file mode 100644
index 0000000..4af2eb8
--- /dev/null
+++ b/debian/python-pydispatcher-doc.examples
@@ -0,0 +1 @@
+examples/*py
diff --git a/debian/rules b/debian/rules
index 9b3b8df..b7c524a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,11 @@ export PYBUILD_NAME=pydispatcher
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_installdocs:
+	(cd docs/pydoc && PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=../.. ./builddocs.py)
+	dh_installdocs
+
+override_dh_installexamples:
+	chmod 0644 examples/*py
+	dh_installexamples

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



More information about the Python-modules-commits mailing list