Package: python-warlock
Version: 1.0.1-1ubuntu1
Followup-For: Bug #717469

Dear Maintainer,

Please find attached a couple of tweaks to the python3 enablement to allow 
easier
backporting to earlier python3 versions.

Cheers

James


-- System Information:
Debian Release: wheezy/sid
  APT prefers saucy-updates
  APT policy: (500, 'saucy-updates'), (500, 'saucy-security'), (500, 'saucy'), 
(100, 'saucy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10.0-4-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-warlock depends on:
ii  dpkg               1.16.10ubuntu3
ii  python             2.7.5-1ubuntu1
ii  python-json-patch  1.0-1ubuntu2
ii  python-jsonschema  1.1.0-2
ii  python-six         1.3.0-1

python-warlock recommends no packages.

python-warlock suggests no packages.

-- no debconf information
diff -Nru python-warlock-1.0.1/debian/control python-warlock-1.0.1/debian/control
--- python-warlock-1.0.1/debian/control	2013-07-21 05:18:17.000000000 +0100
+++ python-warlock-1.0.1/debian/control	2013-07-23 14:32:10.000000000 +0100
@@ -15,12 +15,13 @@
                python-jsonschema,
                python-nose,
                python-setuptools,
-               python3-setuptools,
                python-six,
                python3-all (>= 3.1.2-7~),
                python3-json-patch  (>= 0.10),
                python3-jsonschema,
-               python3-nose
+               python3-nose,
+               python3-setuptools,
+               python3-six
 Standards-Version: 3.9.4
 X-Python-Version: >= 2.6
 X-Python3-Version: >= 3.0
diff -Nru python-warlock-1.0.1/debian/rules python-warlock-1.0.1/debian/rules
--- python-warlock-1.0.1/debian/rules	2013-07-20 11:10:41.000000000 +0100
+++ python-warlock-1.0.1/debian/rules	2013-07-23 15:13:34.000000000 +0100
@@ -12,11 +12,13 @@
 %:
 	dh $@  --with python2,python3
 
-test-python2.7:
-	nosetests
-
-test-python3.3:
-	nosetests3 || true
+test-python%:
+	ver=`echo $* | cut -d . -f 1`; \
+	if [ "$$ver" = "3" ]; then \
+		nosetests3 || : ; \
+	else \
+		nosetests; \
+	fi
 
 override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
 

Reply via email to