[Python-modules-commits] r9283 - in packages/python-werkzeug/trunk/debian (6 files)

piotr at users.alioth.debian.org piotr at users.alioth.debian.org
Fri Aug 7 22:21:15 UTC 2009


    Date: Friday, August 7, 2009 @ 22:21:15
  Author: piotr
Revision: 9283

* finish switching to dh sequencer
* ship some examples in the package
* remove html docs and pyc files in clean target
* remove README.source - no longer needed

Added:
  packages/python-werkzeug/trunk/debian/docs
  packages/python-werkzeug/trunk/debian/examples
Modified:
  packages/python-werkzeug/trunk/debian/changelog
  packages/python-werkzeug/trunk/debian/rules
  packages/python-werkzeug/trunk/debian/watch
Deleted:
  packages/python-werkzeug/trunk/debian/README.source

Deleted: packages/python-werkzeug/trunk/debian/README.source
===================================================================
--- packages/python-werkzeug/trunk/debian/README.source	2009-08-07 18:02:27 UTC (rev 9282)
+++ packages/python-werkzeug/trunk/debian/README.source	2009-08-07 22:21:15 UTC (rev 9283)
@@ -1,12 +0,0 @@
-Source README
-=============
-
-The upstream source can be downloaded with the following command:
-
-  ./debian/rules get-orig-source
-
-You will need the following packages installed:
-
-  devscripts
-
- -- Noah Slater <nslater at tumbolia.org>, Sat, 27 Dec 2008 08:03:50 +0000

Modified: packages/python-werkzeug/trunk/debian/changelog
===================================================================
--- packages/python-werkzeug/trunk/debian/changelog	2009-08-07 18:02:27 UTC (rev 9282)
+++ packages/python-werkzeug/trunk/debian/changelog	2009-08-07 22:21:15 UTC (rev 9283)
@@ -1,7 +1,7 @@
 python-werkzeug (0.5.1-1) unstable; urgency=low
 
   [ Noah Slater ]
-  * New upstream release (0.5).
+  * New upstream release (0.5). Closes: #536465
   * Updated debian/control, removed Depends on python-wsgiref.
   * Updated debian/control, updated Build-Depends on debhelper to 7.2.11.
   * Updated debian/rules, use /usr/share/pyshared directory. Closes: #517302
@@ -11,6 +11,7 @@
   * New build dependencies:
     - python-simplejson (to build docs)
     - python-nose and python-lxml (to run tests)
+  * Use dh sequencer instead of CDBS. Closes: #526577
   * Standards-Version bumped to 3.8.2 (no changes needed)
   * Add myself to Uploaders
 

Added: packages/python-werkzeug/trunk/debian/docs
===================================================================
--- packages/python-werkzeug/trunk/debian/docs	                        (rev 0)
+++ packages/python-werkzeug/trunk/debian/docs	2009-08-07 22:21:15 UTC (rev 9283)
@@ -0,0 +1 @@
+docs/_build/html

Added: packages/python-werkzeug/trunk/debian/examples
===================================================================
--- packages/python-werkzeug/trunk/debian/examples	                        (rev 0)
+++ packages/python-werkzeug/trunk/debian/examples	2009-08-07 22:21:15 UTC (rev 9283)
@@ -0,0 +1 @@
+examples/*

Modified: packages/python-werkzeug/trunk/debian/rules
===================================================================
--- packages/python-werkzeug/trunk/debian/rules	2009-08-07 18:02:27 UTC (rev 9282)
+++ packages/python-werkzeug/trunk/debian/rules	2009-08-07 22:21:15 UTC (rev 9283)
@@ -6,33 +6,34 @@
 # permitted in any medium without royalty provided the copyright notice and this
 # notice are preserved.
 
+#export DH_VERBOSE=1
 export PYTHONPATH=$(abspath $(CURDIR))
+PKGDIR=$(CURDIR)/debian/python-werkzeug/
 
+-include /usr/share/python/python.mk
+ifeq (,$(py_libdir))
+    py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
+endif
+
 %:
 	dh $@
 
-#DEB_PYTHON_SYSTEM := pysupport
+override_dh_auto_install:
+	python setup.py install \
+		--single-version-externally-managed \
+		--install-layout=deb \
+		--root $(PKGDIR)
+	touch $(PKGDIR)$(call py_libdir,$(shell pyversions -vd))/werkzeug/debug/shared/.noinit
+	touch $(PKGDIR)$(call py_libdir,$(shell pyversions -vd))/werkzeug/debug/templates/.noinit
+	dh_link usr/share/javascript/jquery/jquery.js \
+	  $(call py_libdir,$(shell pyversions -vd))/werkzeug/debug/shared/jquery.js
+	dh_link usr/share/javascript/jquery/jquery.js \
+	  /usr/share/doc/python-werkzeug/html/_static/jquery.js
+	dh_link /usr/share/doc/python-werkzeug/html/_sources \
+		/usr/share/doc/python-werkzeug/rst
 
-#include /usr/share/cdbs/1/rules/buildcore.mk
-#include /usr/share/cdbs/1/rules/debhelper.mk
-#include /usr/share/cdbs/1/class/python-distutils.mk
-
-#DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
-
-# @@ workaround for #486848
-#binary-arch binary-indep: build
-
-#common-install-indep::
-#	mkdir -p debian/python-werkzeug/usr/share/doc/python-werkzeug
-#	rm debian/python-werkzeug/usr/docs/README
-#	mv debian/python-werkzeug/usr/docs debian/python-werkzeug/usr/share/doc/python-werkzeug/html
-#	chmod 644 debian/python-werkzeug/usr/share/pyshared/werkzeug/debug/shared/*
-
-#binary-install/python-werkzeug::
-#	dh_link usr/share/javascript/jquery/jquery.js \
-#	    usr/share/pyshared/python-werkzeug/werkzeug/debug/shared/jquery.js
-
-# @@ only works from source directory, see #494141
-#.PHONY: get-orig-source
-# get-orig-source:
-#	uscan --force-download --rename --download-version=$(DEB_UPSTREAM_VERSION) --destdir .
+clean:
+	dh $@
+	make -C docs clean
+	find $(CURDIR) -name '*\.py[co]' -delete
+	rm -rf build

Modified: packages/python-werkzeug/trunk/debian/watch
===================================================================
--- packages/python-werkzeug/trunk/debian/watch	2009-08-07 18:02:27 UTC (rev 9282)
+++ packages/python-werkzeug/trunk/debian/watch	2009-08-07 22:21:15 UTC (rev 9283)
@@ -1,3 +1,2 @@
 version=3
-#http://cheeseshop.python.org/packages/source/W/Werkzeug/Werkzeug-(.*)\.tar\.gz
-http://cheeseshop.python.org/packages/source/W/Werkzeug/Werkzeug-(.*)\.zip
+http://cheeseshop.python.org/packages/source/W/Werkzeug/Werkzeug-(.*)\.tar\.gz




More information about the Python-modules-commits mailing list