[Python-modules-commits] r20375 - in packages/python-urllib3/trunk/debian (control rules)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Thu Feb 9 02:48:29 UTC 2012


    Date: Thursday, February 9, 2012 @ 02:48:28
  Author: eriol-guest
Revision: 20375

Enabled testing at build time

Modified:
  packages/python-urllib3/trunk/debian/control
  packages/python-urllib3/trunk/debian/rules

Modified: packages/python-urllib3/trunk/debian/control
===================================================================
--- packages/python-urllib3/trunk/debian/control	2012-02-09 02:06:53 UTC (rev 20374)
+++ packages/python-urllib3/trunk/debian/control	2012-02-09 02:48:28 UTC (rev 20375)
@@ -6,7 +6,10 @@
 Build-Depends:
  debhelper (>= 7.0.50~),
  python-all (>= 2.6.6-3),
+ python-coverage,
+ python-nose (>=1.1.2),
  python-setuptools (>= 0.6b3),
+ python-tornado,
  python3-all
 Standards-Version: 3.9.2
 X-Python-Version: >= 2.6

Modified: packages/python-urllib3/trunk/debian/rules
===================================================================
--- packages/python-urllib3/trunk/debian/rules	2012-02-09 02:06:53 UTC (rev 20374)
+++ packages/python-urllib3/trunk/debian/rules	2012-02-09 02:48:28 UTC (rev 20375)
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export PYTHONWARNINGS=d
+
 PYVERS := $(shell pyversions -r)
 PY3VERS := $(shell py3versions -r)
 
@@ -25,5 +27,18 @@
 			--install-layout deb; \
 	done
 
+	# Remove dummyserver/ tests to not pollute namespace.
+	rm -rf debian/python*-urllib3/usr/lib/python*/dist-packages/dummyserver
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	# Python3 testing is not possible at the moment because missing
+	# dependencies: python3-coverage and python3-tornado.
+	set -ex; \
+	for python in $(PYVERS); do \
+		$$python /usr/bin/nosetests; \
+	done
+endif
+
 override_dh_installchangelogs:
 	dh_installchangelogs CHANGES.rst




More information about the Python-modules-commits mailing list