The issue is that the autodep8 tests are run for all supported versions of Python, but odil does not build its extensions for all supported versions of Python. And one of the reasons it does not (not build-depending on python3-all-dev) causes odil to not be on the list of packages that needs to be rebuilt when a supported version of Python3 is added or removed. The attached patch fixes that, and (in a fairly unpleasant way) fixes a failure to run the tests for the non-default Python with the correct Python interpreter.
diff -Nru odil-0.10.0/debian/changelog odil-0.10.0/debian/changelog --- odil-0.10.0/debian/changelog 2019-01-15 06:42:21.000000000 +1300 +++ odil-0.10.0/debian/changelog 2019-10-25 09:29:22.000000000 +1300 @@ -1,3 +1,11 @@ +odil (0.10.0-3ubuntu1) focal; urgency=medium + + * Build-Depend on python3-all-dev so that Python 3.8 extensions are built. + * d/rules: Fix py3versions invocation, actually run tests for non-default + Python with that Python. + + -- Michael Hudson-Doyle <michael.hud...@ubuntu.com> Fri, 25 Oct 2019 09:29:22 +1300 + odil (0.10.0-3) unstable; urgency=medium [ Julien Lamy ] diff -Nru odil-0.10.0/debian/control odil-0.10.0/debian/control --- odil-0.10.0/debian/control 2019-01-15 06:42:21.000000000 +1300 +++ odil-0.10.0/debian/control 2019-10-25 09:29:22.000000000 +1300 @@ -1,5 +1,6 @@ Source: odil -Maintainer: Debian Med Packaging Team <debian-med-packag...@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Med Packaging Team <debian-med-packag...@lists.alioth.debian.org> Uploaders: Julien Lamy <l...@unistra.fr> Section: science Testsuite: autopkgtest-pkg-python @@ -27,7 +28,7 @@ chrpath, dcmtk, python-dev, - python3-dev, + python3-all-dev, python-nose, python3-nose Build-Depends-Indep: doxygen, diff -Nru odil-0.10.0/debian/helpers/nosetests3 odil-0.10.0/debian/helpers/nosetests3 --- odil-0.10.0/debian/helpers/nosetests3 1970-01-01 12:00:00.000000000 +1200 +++ odil-0.10.0/debian/helpers/nosetests3 2019-10-25 09:29:22.000000000 +1300 @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/python${Python} /usr/bin/nosetests3 "$@" diff -Nru odil-0.10.0/debian/rules odil-0.10.0/debian/rules --- odil-0.10.0/debian/rules 2019-01-15 06:42:21.000000000 +1300 +++ odil-0.10.0/debian/rules 2019-10-25 09:29:22.000000000 +1300 @@ -7,7 +7,7 @@ # Find all Python versions PYTHON2=$(shell pyversions -vrd) -PYTHON3=$(shell py3versions -vrd) +PYTHON3=$(shell py3versions -vs) ALLPY=$(PYTHON2) $(PYTHON3) %: @@ -64,13 +64,14 @@ override_dh_auto_test-arch-py: override_dh_auto_test-arch-nopy ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -e; \ + export Python; \ for Python in $(ALLPY); do \ echo "=== Testing for Python $${Python} ==="; \ ln -s build-py$${Python} build; \ ln -sr ./build/wrappers/python ./build/odil; \ ln -sr ./wrappers/python/*.py ./build/odil; \ cd build && \ - ../tests/run --no-network \ + PATH=$(CURDIR)/debian/helpers:$$PATH ../tests/run --no-network \ --nose nosetests$$(dpkg --compare-versions $${Python} ge 3 && echo "3") \ -E ".*"; \ cd ..; \