#!/usr/bin/make -f

export LC_ALL=C.UTF-8
export LANG=C.UTF-8

export PYTHONWARNINGS=d
export PYBUILD_NAME=afancontrol
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS={dir}/tests/

override_dh_auto_test:
	# the test suite does not 100% pass at present,
	# but the output is useful documentation for users
	(dh_auto_test; echo $?) > test-results

%:
	dh $@ --with python3 --buildsystem=pybuild
