#!/usr/bin/make -f
#export DH_VERBOSE=1

PYTHON3:=$(shell py3versions -vr)

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

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
test-python%:
	cd .pybuild/cpython3_$*/build && python$* -m pytest

override_dh_auto_test: $(PYTHON3:%=test-python%)
endif

override_dh_python3:
	dh_numpy3
	dh_python3
