#!/usr/bin/make -f

export PYBUILD_NAME=whitenoise
export LC_ALL = C.UTF-8

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

override_dh_installchangelogs:
	dh_installchangelogs -p python3-whitenoise  docs/changelog.rst

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	set -e; for python in $$(py3versions --requested 2>/dev/null); do \
		DJANGO_SETTINGS_MODULE=tests.django_settings $$python -m pytest; \
	done
endif
