[Python-modules-commits] r29060 - in packages/python-urllib3/trunk/debian (changelog rules)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Sun May 25 01:05:45 UTC 2014
Date: Sunday, May 25, 2014 @ 01:05:44
Author: eriol-guest
Revision: 29060
Enabled tests at build time for Python 3
Modified:
packages/python-urllib3/trunk/debian/changelog
packages/python-urllib3/trunk/debian/rules
Modified: packages/python-urllib3/trunk/debian/changelog
===================================================================
--- packages/python-urllib3/trunk/debian/changelog 2014-05-25 01:00:13 UTC (rev 29059)
+++ packages/python-urllib3/trunk/debian/changelog 2014-05-25 01:05:44 UTC (rev 29060)
@@ -18,8 +18,10 @@
- Do not use embedded copy of ssl.match_hostname
* debian/patches/06_relax-test-requirements.patch
- Relax version of packages needed for testing
+ * debian/rules
+ - Enabled tests at build time for Python 3
- -- Daniele Tricoli <eriol at mornie.org> Sun, 25 May 2014 02:52:55 +0200
+ -- Daniele Tricoli <eriol at mornie.org> Sun, 25 May 2014 03:04:16 +0200
python-urllib3 (1.8-2) unstable; urgency=medium
Modified: packages/python-urllib3/trunk/debian/rules
===================================================================
--- packages/python-urllib3/trunk/debian/rules 2014-05-25 01:00:13 UTC (rev 29059)
+++ packages/python-urllib3/trunk/debian/rules 2014-05-25 01:05:44 UTC (rev 29060)
@@ -3,6 +3,8 @@
export PYBUILD_NAME=urllib3
export PYTHONWARNINGS=d
+PYVERS := $(shell pyversions -r)
+PY3VERS := $(shell py3versions -r)
%:
dh $@ --with python2,python3 --buildsystem=pybuild
@@ -20,11 +22,15 @@
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- # Python3 testing is not possible at the moment because missing
- # dependencies: python3-coverage.
- # Upstream is using a python2.7 features: assertRaises() as a context
- # manager
- set -ex; python2.7 /usr/bin/nosetests
+ set -ex; \
+ for python in $(PYVERS); do \
+ $$python setup.py nosetests; \
+ done
+
+ set -ex; \
+ for python in $(PY3VERS); do \
+ $$python setup.py nosetests; \
+ done
endif
override_dh_installchangelogs:
More information about the Python-modules-commits
mailing list