[Python-modules-commits] r6935 - in packages/python-tempita/trunk/debian (4 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Sat Nov 22 21:42:51 UTC 2008


    Date: Saturday, November 22, 2008 @ 21:42:50
  Author: piotr
Revision: 6935

* New upstream release
* Build docs using Sphinx:
  + python-sphinx added to build dependencies
  + new suggested package: libjs-jquery

Added:
  packages/python-tempita/trunk/debian/dirs
Modified:
  packages/python-tempita/trunk/debian/changelog
  packages/python-tempita/trunk/debian/control
  packages/python-tempita/trunk/debian/rules

Modified: packages/python-tempita/trunk/debian/changelog
===================================================================
--- packages/python-tempita/trunk/debian/changelog	2008-11-22 21:41:56 UTC (rev 6934)
+++ packages/python-tempita/trunk/debian/changelog	2008-11-22 21:42:50 UTC (rev 6935)
@@ -1,10 +1,17 @@
-python-tempita (0.2-2) UNRELEASED; urgency=low
+python-tempita (0.3-1) unstable; urgency=low
 
+  [ Sandro Tosi ]
   * debian/control
     - switch Vcs-Browser field to viewsvn
 
- -- Sandro Tosi <morph at debian.org>  Mon, 03 Nov 2008 22:15:57 +0100
+  [ Piotr Ożarowski ]
+  * 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>  Sat, 22 Nov 2008 21:32:52 +0100
+
 python-tempita (0.2-1) unstable; urgency=low
 
   * New upstream release

Modified: packages/python-tempita/trunk/debian/control
===================================================================
--- packages/python-tempita/trunk/debian/control	2008-11-22 21:41:56 UTC (rev 6934)
+++ packages/python-tempita/trunk/debian/control	2008-11-22 21:42:50 UTC (rev 6935)
@@ -4,7 +4,7 @@
 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
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-tempita/trunk/
@@ -13,6 +13,7 @@
 Package: python-tempita
 Architecture: all
 Depends: ${python:Depends}, python
+Suggests: libjs-jquery
 Description: very small text templating language
  Tempita is a small and simple Python text templating language mainly used
  by Paster (python-pastescript) to roll out new projects.

Added: packages/python-tempita/trunk/debian/dirs
===================================================================
--- packages/python-tempita/trunk/debian/dirs	                        (rev 0)
+++ packages/python-tempita/trunk/debian/dirs	2008-11-22 21:42:50 UTC (rev 6935)
@@ -0,0 +1,2 @@
+/usr/share/doc/python-tempita/docs
+/usr/share/lintian/overrides

Modified: packages/python-tempita/trunk/debian/rules
===================================================================
--- packages/python-tempita/trunk/debian/rules	2008-11-22 21:41:56 UTC (rev 6934)
+++ packages/python-tempita/trunk/debian/rules	2008-11-22 21:42:50 UTC (rev 6935)
@@ -10,14 +10,25 @@
 	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)
+	touch $@
+
 install: build
 	dh_testdir
 	dh_testroot
-	dh_clean -k
 	dh_installdirs
 	python setup.py install \
 		--no-compile \
@@ -29,8 +40,7 @@
 	dh_testroot
 	dh_installchangelogs
 	dh_installdocs
-	dh_installexamples
-	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