[Python-modules-commits] r15958 - in packages/python-formencode/trunk/debian (3 files)

wrar-guest at users.alioth.debian.org wrar-guest at users.alioth.debian.org
Wed Mar 2 20:23:39 UTC 2011


    Date: Wednesday, March 2, 2011 @ 20:23:26
  Author: wrar-guest
Revision: 15958

Enable build-time tests

Modified:
  packages/python-formencode/trunk/debian/changelog
  packages/python-formencode/trunk/debian/control
  packages/python-formencode/trunk/debian/rules

Modified: packages/python-formencode/trunk/debian/changelog
===================================================================
--- packages/python-formencode/trunk/debian/changelog	2011-03-02 15:39:26 UTC (rev 15957)
+++ packages/python-formencode/trunk/debian/changelog	2011-03-02 20:23:26 UTC (rev 15958)
@@ -1,3 +1,9 @@
+python-formencode (1.2.2-2) UNRELEASED; urgency=low
+
+  * Enable build-time tests
+
+ -- Andrey Rahmatullin <wrar at wrar.name>  Thu, 03 Mar 2011 01:20:43 +0500
+
 python-formencode (1.2.2-1) unstable; urgency=low
 
   * New upstream release

Modified: packages/python-formencode/trunk/debian/control
===================================================================
--- packages/python-formencode/trunk/debian/control	2011-03-02 15:39:26 UTC (rev 15957)
+++ packages/python-formencode/trunk/debian/control	2011-03-02 20:23:26 UTC (rev 15958)
@@ -1,7 +1,8 @@
 Source: python-formencode
 Section: python
 Priority: optional
-Build-Depends: debhelper (>= 5.0.37.2), python-all-dev, python (>= 2.3.5-7), python-support (>= 0.6), python-setuptools (>= 0.6a9)
+Build-Depends: debhelper (>= 5.0.37.2), python-all-dev, python (>= 2.3.5-7),
+ python-support (>= 0.6), python-setuptools (>= 0.6a9), python-nose
 Maintainer: Fabio Tranchitella <kobold at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
  Piotr Ożarowski <piotr at debian.org>

Modified: packages/python-formencode/trunk/debian/rules
===================================================================
--- packages/python-formencode/trunk/debian/rules	2011-03-02 15:39:26 UTC (rev 15957)
+++ packages/python-formencode/trunk/debian/rules	2011-03-02 20:23:26 UTC (rev 15958)
@@ -22,6 +22,15 @@
 	find . -name '*\.py[co]' -delete
 	dh_clean
 
+test:
+	-
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	for PYTHON in $(PYVERS); \
+		do LC_ALL=C $$PYTHON setup.py test -vv; \
+	done
+endif
+
+
 install: build
 	dh_testdir
 	dh_testroot
@@ -36,7 +45,7 @@
 binary-arch:
 
 # Build architecture-independent files here.
-binary-indep: build install
+binary-indep: build install test
 	dh_testdir
 	dh_testroot
 	dh_installdocs -ppython-formencode
@@ -51,4 +60,4 @@
 	dh_builddeb -i
 
 binary: binary-arch binary-indep
-.PHONY: build clean binary-indep binary
+.PHONY: build clean binary-indep binary test




More information about the Python-modules-commits mailing list