[Python-modules-commits] r19512 - in packages/cssutils/trunk/debian (changelog control rules)

cjsmo-guest at users.alioth.debian.org cjsmo-guest at users.alioth.debian.org
Mon Dec 5 05:46:00 UTC 2011


    Date: Monday, December 5, 2011 @ 05:45:58
  Author: cjsmo-guest
Revision: 19512

use nose to run py2 and py3 tests

Modified:
  packages/cssutils/trunk/debian/changelog
  packages/cssutils/trunk/debian/control
  packages/cssutils/trunk/debian/rules

Modified: packages/cssutils/trunk/debian/changelog
===================================================================
--- packages/cssutils/trunk/debian/changelog	2011-12-05 02:48:05 UTC (rev 19511)
+++ packages/cssutils/trunk/debian/changelog	2011-12-05 05:45:58 UTC (rev 19512)
@@ -16,6 +16,7 @@
     - Removed python-encutils stanza, upstream now bundles it into cssutils.
     - Added python3-cssutils stanzas.
     - B-D on python3, and python3-setuptools.
+    - B-D on python-mock, python3-mock and python-nose to run unittests.
     - No longer Depend on python-encutils.
     - No longer Recommend python-cssutils-doc package.
     - Added Replaces and Provides so python-cssutils-0.9.8~a1 is upgraded
@@ -27,7 +28,7 @@
       update alternative can be used.
     - Added dh_installman override and make copies of manpages to be used in
       python2 and python3 packages.
-    - Added nosetests to run unittests at build time.
+    - Added nosetests to run unittests at build time for py2 and py3 packages.
   * Removed python-cssutils-doc.links, python-cssutils-doc.doc-base,
     python-cssutils-doc.docs, python-cssutils-doc.examples,
     python-cssutils.install, python-encutils.install, no longer needed.
@@ -42,7 +43,7 @@
   * Added 01_setup_fix.patch to create py2 and py3 executables.
   * Added lintian-overrides.
 
- -- Charlie Smotherman <cjsmo at cableone.net>  Mon, 28 Nov 2011 14:39:22 -0500
+ -- Charlie Smotherman <cjsmo at cableone.net>  Sun, 04 Dec 2011 23:41:52 -0500
 
 cssutils (0.9.8~a1-1) unstable; urgency=low
 

Modified: packages/cssutils/trunk/debian/control
===================================================================
--- packages/cssutils/trunk/debian/control	2011-12-05 02:48:05 UTC (rev 19511)
+++ packages/cssutils/trunk/debian/control	2011-12-05 05:45:58 UTC (rev 19512)
@@ -8,8 +8,11 @@
 Build-Depends: debhelper (>= 7.0.50~),
                python-all (>= 2.6.6-3~),
                python-setuptools,
+               python-nose,
+               python-mock,
                python3-all,
-               python3-setuptools
+               python3-setuptools,
+               python3-mock
 Standards-Version: 3.9.2
 Homepage: https://bitbucket.org/cthedot/cssutils
 X-Python-Version: >= 2.5

Modified: packages/cssutils/trunk/debian/rules
===================================================================
--- packages/cssutils/trunk/debian/rules	2011-12-05 02:48:05 UTC (rev 19511)
+++ packages/cssutils/trunk/debian/rules	2011-12-05 05:45:58 UTC (rev 19512)
@@ -1,8 +1,9 @@
 #!/usr/bin/make -f
 
 #get our python versions
-PYVERS    := $(shell pyversions -r)
-PY3VERS   := $(shell py3versions -r)
+PYVERS  := $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
+T3DIR   := $(CURDIR)/build/lib/tests
 
 %:
 	dh $@ --with python2,python3
@@ -13,6 +14,18 @@
 		$$py setup.py build; \
 	done
 
+override_dh_auto_test:
+	set -e; \
+	for py in $(PYVERS); do \
+		nosetests -v --exclude=test_parseFile --exclude=test_parseString \
+		--exclude=test_parseUrl --exclude=test_combine; \
+	done
+	for py in $(PY3VERS); do \
+		nosetests -v --py3where=$(T3DIR) --exclude=test_parseFile \
+		--exclude=test_parseString --exclude=test_parseUrl \
+		--exclude=test_combine; \
+	done
+
 override_dh_auto_install:
 	set -e; \
 	for py in $(PYVERS); do \




More information about the Python-modules-commits mailing list