#!/usr/bin/make -f

%:
	dh $@ --buildsystem pybuild


override_dh_auto_test:
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
	# Running the tests require to generate some files first.
	# Use the upstream Makefile and its test target to do that.
	set -e; \
	for python in $(shell py3versions -s); do \
		make test PYTHON3=$$python; \
	done
endif
