From 3428a65b1cd644445f55ad8ae65ece5f73d7acb5 Mon Sep 17 00:00:00 2001 From: Dan Streetman Date: Fri, 4 Jun 2021 12:17:48 -0400 Subject: [PATCH] d/rules: override build tests to use flake8 and nosetests3 --- debian/control | 2 ++ debian/rules | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/debian/control b/debian/control index 7c30efb..6693c1f 100644 --- a/debian/control +++ b/debian/control @@ -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 , python3-setuptools, python3-termcolor , diff --git a/debian/rules b/debian/rules index 4c3e028..abcbf1e 100755 --- a/debian/rules +++ b/debian/rules @@ -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