#!/usr/bin/make -f

#export PYBUILD_TEST_TOX=1
export LC_ALL=C.UTF-8

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

override_dh_install:
	dh_install -O--buildsystem=pybuild

override_dh_installdocs:
	dh_installdocs -A README

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_install
	PYTHONPATH=$(CURDIR) py.test-3
	PYTHONPATH=$(CURDIR) py.test
endif

override_dh_clean:
	dh_clean
	rm -rf .pytest_cache
