#!/usr/bin/make -f

export DH_VERBOSE = 1

export PYBUILD_NAME=numpy-groupies

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .pytest_cache
	find . -name __pycache__ -type d | xargs -r rm -r

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	pytest-3 -rls
endif
