[Python-modules-team] Bug#935202: python-apptools: skip python2 tests

Steve Langasek steve.langasek at canonical.com
Tue Aug 20 21:33:32 BST 2019


Package: python-apptools
Version: 4.4.0-3
Severity: minor
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu eoan ubuntu-patch

Dear maintainers,

In Ubuntu we are in the process of trying to unwind the reverse-dependencies
of python-pandas, because it is RC-buggy there and not worth fixing.

The python-apptools package has a build-dependency on python-pandas, which
it uses only for testing.

As a result, I've uploaded the attached patch to Ubuntu, which drops the
build-dependency and skips the tests for python2, which can be done much
more straightforwardly right now than unwinding all of the python-apptools
reverse-dependencies.

Please consider applying this patch in Debian as well.

You might also find that several other python2 build-dependencies could be
dropped if you are not running the tests at build time.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru python-apptools-4.4.0/debian/control python-apptools-4.4.0/debian/control
--- python-apptools-4.4.0/debian/control	2019-03-05 12:26:46.000000000 -0800
+++ python-apptools-4.4.0/debian/control	2019-08-20 12:25:32.000000000 -0700
@@ -11,7 +11,6 @@
  python-setuptools,
  python-traits,
  python-tables,
- python-pandas,
  python-nose,
  python-configobj,
  python3-all,
diff -Nru python-apptools-4.4.0/debian/rules python-apptools-4.4.0/debian/rules
--- python-apptools-4.4.0/debian/rules	2019-03-05 12:26:46.000000000 -0800
+++ python-apptools-4.4.0/debian/rules	2019-08-20 12:25:32.000000000 -0700
@@ -10,3 +10,11 @@
 	dh_auto_build
 	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/source build/html
 	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bman docs/source build/man
+
+override_dh_auto_test:
+	# skip python2 tests, which depend on removed python-pandas
+	set -e; \
+	PY3VERS=$$(py3versions -s -v); \
+	for python in $$PY3VERS; do \
+		pybuild --test --test-nose -i python{version} -p $$python; \
+	done


More information about the Python-modules-team mailing list