#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE = 1

export PYBUILD_NAME=django_rich
export PYBUILD_SYSTEM=pyproject

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

override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="{interpreter} -m coverage run -m pytest tests"
	# Upstream uses a more agressive call, wont work here
	# as at least the package we build isn't installed.
	#dh_auto_test -- --system=custom --test-args="{interpreter} -W error::ResourceWarning -W error::DeprecationWarning -W error::PendingDeprecationWarning -m coverage run -m pytest tests"
