[Python-modules-commits] r6809 - in packages/python-webob/trunk/debian (4 files)
piotr at users.alioth.debian.org
piotr at users.alioth.debian.org
Thu Oct 30 22:24:57 UTC 2008
Date: Thursday, October 30, 2008 @ 22:24:57
Author: piotr
Revision: 6809
* Build docs using Sphinx:
+ python-sphinx added to build dependencies
+ new suggested package: libjs-jquery
Added:
packages/python-webob/trunk/debian/dirs
Modified:
packages/python-webob/trunk/debian/changelog
packages/python-webob/trunk/debian/control
packages/python-webob/trunk/debian/rules
Modified: packages/python-webob/trunk/debian/changelog
===================================================================
--- packages/python-webob/trunk/debian/changelog 2008-10-30 22:08:29 UTC (rev 6808)
+++ packages/python-webob/trunk/debian/changelog 2008-10-30 22:24:57 UTC (rev 6809)
@@ -1,6 +1,9 @@
python-webob (0.9.4-1) unstable; urgency=low
* New upstream release
+ * Build docs using Sphinx:
+ + python-sphinx added to build dependencies
+ + new suggested package: libjs-jquery
-- Piotr Ożarowski <piotr at debian.org> Wed, 29 Oct 2008 23:31:04 +0100
Modified: packages/python-webob/trunk/debian/control
===================================================================
--- packages/python-webob/trunk/debian/control 2008-10-30 22:08:29 UTC (rev 6808)
+++ packages/python-webob/trunk/debian/control 2008-10-30 22:24:57 UTC (rev 6809)
@@ -4,7 +4,8 @@
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Christoph Haas <haas at debian.org>, Piotr Ożarowski <piotr at debian.org>
Build-Depends: debhelper (>= 5)
-Build-Depends-Indep: python (>= 2.3.3), python-all-dev, python-support (>= 0.6.4), python-setuptools (>= 0.6b3-1~)
+Build-Depends-Indep: python (>= 2.3.3), python-all-dev, python-support (>= 0.6.4),
+ python-setuptools (>= 0.6b3-1~), python-sphinx
Standards-Version: 3.8.0
XS-Python-Version: all
Homepage: http://pythonpaste.org/webob/
@@ -14,6 +15,7 @@
Package: python-webob
Architecture: all
Depends: ${python:Depends}, python
+Suggests: libjs-jquery
Description: Python module providing WSGI request and response objects
WebOb provides wrappers around the WSGI request environment, and an object to
help create WSGI responses.
Added: packages/python-webob/trunk/debian/dirs
===================================================================
--- packages/python-webob/trunk/debian/dirs (rev 0)
+++ packages/python-webob/trunk/debian/dirs 2008-10-30 22:24:57 UTC (rev 6809)
@@ -0,0 +1,2 @@
+/usr/share/doc/python-webob/docs
+/usr/share/lintian/overrides
Modified: packages/python-webob/trunk/debian/rules
===================================================================
--- packages/python-webob/trunk/debian/rules 2008-10-30 22:08:29 UTC (rev 6808)
+++ packages/python-webob/trunk/debian/rules 2008-10-30 22:24:57 UTC (rev 6809)
@@ -10,14 +10,26 @@
dh_testroot
rm -rf build
find . -name *\.py[co] -exec rm -f {} \;
- dh_clean
+ dh_clean build-docs
-build:
+build: build-docs
+build-docs:
+ dh_testdir
+ dh_installdirs
+ mkdir docs/_static # Sphinx needs it
+ PYTHONPATH=. sphinx-build -N -q -E -b html docs/ debian/$(package)/usr/share/doc/$(package)/docs/
+ rm -rf debian/$(package)/usr/share/doc/$(package)/docs/.doctrees
+ dh_link /usr/share/javascript/jquery/jquery.js \
+ /usr/share/doc/$(package)/docs/_static/jquery.js
+ echo "$(package): extra-license-file usr/share/doc/$(package)/docs/_sources/license.txt" \
+ >> debian/$(package)/usr/share/lintian/overrides/$(package)
+ dh_link usr/share/doc/$(package)/docs /usr/share/doc/python-paste/docs/weberror
+ touch $@
+
install: build
dh_testdir
dh_testroot
- dh_clean -k
dh_installdirs
python setup.py install \
--no-compile \
@@ -29,7 +41,7 @@
dh_testroot
dh_installchangelogs docs/news.txt
dh_installdocs
- dh_compress -X.py
+ dh_compress -X.py -X.js
dh_fixperms
dh_pysupport
dh_installdeb
More information about the Python-modules-commits
mailing list