#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

# detect if build targets experimental suite (or is a draft)
DEB_SUITE_EXP = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))

DH_OPTIONS = -O--buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test $(if $(DEB_SUITE_EXP),|| true)
endif

%:
	dh $@ --with python3 $(DH_OPTIONS:-O%=%)
