Package: voluptuous
Version: 0.8.8-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu xenial ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * d/rules: Enable tests for python3.

Thanks for considering the patch.


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

Kernel: Linux 4.4.0-6-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru voluptuous-0.8.8/debian/rules voluptuous-0.8.8/debian/rules
--- voluptuous-0.8.8/debian/rules	2016-03-11 10:28:28.000000000 -0500
+++ voluptuous-0.8.8/debian/rules	2016-03-16 13:34:55.000000000 -0400
@@ -11,7 +11,15 @@
 	uscan --download-current-version --rename --destdir ../tarballs
 
 override_dh_auto_test:
+	# Run Python 2 nosetests
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_DISABLE_python3=test \
 	PYBUILD_SYSTEM=custom \
 	PYBUILD_TEST_ARGS="nosetests --verbose --with-doctest {build_dir}/ README.md tests.md" dh_auto_test
+	# Run Python 3 nosetests
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_DISABLE_python2=test \
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="nosetests3 --verbose --with-doctest {build_dir}/ README.md tests.md" dh_auto_test
 
 .PHONY: get-orig-source override_dh_auto_test

Reply via email to