d/rules: override build tests to use flake8 and nosetests3

This commit is contained in:
Dan Streetman 2021-06-04 12:17:48 -04:00
parent 91e0babd93
commit 3428a65b1c
2 changed files with 6 additions and 0 deletions

2
debian/control vendored
View File

@ -12,6 +12,7 @@ Build-Depends:
devscripts (>= 2.11.0~),
dh-python,
distro-info (>= 0.2~),
flake8 (>= 3.8.0),
lsb-release,
python3-all,
python3-apt,
@ -20,6 +21,7 @@ Build-Depends:
python3-distro-info,
python3-httplib2,
python3-launchpadlib,
python3-nose,
python3-requests <!nocheck>,
python3-setuptools,
python3-termcolor <!nocheck>,

4
debian/rules vendored
View File

@ -5,5 +5,9 @@ override_dh_auto_clean:
rm -f .coverage
rm -rf .tox
override_dh_auto_test:
flake8 -v --max-line-length=99 --extend-exclude=ubuntu-archive-assistant,ubuntu_archive_assistant
nosetests3 -v ubuntutools
%:
dh $@ --with python3 --buildsystem=pybuild