Note: This currently makes the build fail in a non-clean environment without
py3versions available. This is semi-intended and is the easiest way to have
the tests run as python3 too.
derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no")
PY2VERSIONS=$(shell pyversions -vr)
+PY3VERSIONS=$(shell [ -x /usr/bin/py3versions ] && py3versions -vr)
%:
dh --with python2 $@
dh_clean
rm -f *.py[co]
-override_dh_auto_test: $(PY2VERSIONS:%=test-python%)
+override_dh_auto_test: $(PY2VERSIONS:%=test-python%) $(PY3VERSIONS:%=test-python%)
test-python%:
PYTHONPATH=. python$* test/test_lsb_release.py -vv