[Python-modules-commits] [webpy] 05/07: add documentation package
Wolfgang Borgert
debacle at moszumanska.debian.org
Mon Aug 21 22:07:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository webpy.
commit 2dbad53755c3dfc29ed98557fb161f6b1a096a90
Author: W. Martin Borgert <debacle at debian.org>
Date: Mon Aug 21 23:32:50 2017 +0200
add documentation package
---
debian/control | 20 +++++++++++++++++++-
debian/rules | 9 ++++++++-
2 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 89a4327..662dc73 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: python
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: W. Martin Borgert <debacle at debian.org>
-Build-Depends: debhelper (>= 10), python-all (>= 2.6.6-3~), python-setuptools, python3-all, python3-setuptools, dh-python
+Build-Depends: debhelper (>= 10), python-all (>= 2.6.6-3~), python-setuptools, python3-all, python3-setuptools, python3-sphinx, dh-python
Standards-Version: 4.0.1
Homepage: http://webpy.org/
Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/webpy.git
@@ -42,3 +42,21 @@ Description: Web framework for Python applications
* code that is easier to read and maintain.
.
This package provides the Python 3.x module.
+
+Package: python-webpy-doc
+Section: doc
+Architecture: all
+Depends: libjs-jquery, ${misc:Depends}, ${sphinxdoc:Depends}
+Multi-Arch: foreign
+Description: Web framework for Python applications
+ Webpy offers a clean and well designed API for Python Web applications.
+ .
+ The philosophy behind webpy is to: "Think about the ideal way to write a web
+ app. Write the code to make it happen."
+ .
+ Implementations using this library have resulted in:
+ * less code
+ * code that ran faster
+ * code that is easier to read and maintain.
+ .
+ This package provides the documentation.
diff --git a/debian/rules b/debian/rules
index 6272d1b..9050f96 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,11 @@
export PYBUILD_NAME=webpy
%:
- dh $@ --buildsystem=pybuild --with python2,python3
+ dh $@ --buildsystem=pybuild --with python2,python3,sphinxdoc
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
+ PYTHONPATH=$(CURDIR)/. $(MAKE) -C docs html
+ cp -auxf docs/_build/html debian/python-webpy-doc/usr/share/doc/python-webpy-doc/html
+ dh_sphinxdoc
+endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/webpy.git
More information about the Python-modules-commits
mailing list