[Python-modules-commits] [python-persistent] 07/15: New 'python-persistent-doc' package with Sphinx documentation

Barry Warsaw barry at moszumanska.debian.org
Fri Jan 6 21:13:39 UTC 2017


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

barry pushed a commit to branch master
in repository python-persistent.

commit e87e945e1ff92ef4e9956d73e8427d8e2b767fcb
Author: Julien Muchembled <jm at jmuchemb.eu>
Date:   Sun Dec 4 00:19:06 2016 +0100

    New 'python-persistent-doc' package with Sphinx documentation
---
 debian/control                        | 13 +++++++++++++
 debian/python-persistent-doc.doc-base |  9 +++++++++
 debian/python-persistent-doc.docs     |  1 +
 debian/rules                          |  5 ++++-
 4 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 9f9d191..a50272f 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,8 @@ Section: python
 Priority: optional
 Build-Depends: debhelper (>= 9),
                dh-python,
+               python-sphinx,
+               python-repoze.sphinx.autointerface,
                python-all-dev,
                python-setuptools,
                python-zope.interface,
@@ -40,3 +42,14 @@ Description: Automatic persistence for Python objects
  a database such as the ZODB.
  .
  This is the Python 3 version.
+
+Package: python-persistent-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Automatic persistence for Python objects - documentation
+ This package contains a generic persistence implementation for Python. It
+ forms the core protocol for making objects interact "transparently" with
+ a database such as the ZODB.
+ .
+ This package contains the Python module documentation.
diff --git a/debian/python-persistent-doc.doc-base b/debian/python-persistent-doc.doc-base
new file mode 100644
index 0000000..05556b2
--- /dev/null
+++ b/debian/python-persistent-doc.doc-base
@@ -0,0 +1,9 @@
+Document: python-persistent
+Title: Python persistent Documentation
+Author: Zope Foundation
+Abstract: This document describes automatic persistence for Python objects containers for Python.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-persistent-doc/html/index.html
+Files: /usr/share/doc/python-persistent-doc/html
diff --git a/debian/python-persistent-doc.docs b/debian/python-persistent-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-persistent-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/rules b/debian/rules
index 3fdb75b..801b026 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,11 @@
 export PYBUILD_NAME=persistent
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. http_proxy=http://127.0.0.1:9/ sphinx-build -qNE -b html docs build/html
 
 override_dh_install:
 	dh_install

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



More information about the Python-modules-commits mailing list