#!/usr/bin/make -f
export PYBUILD_SYSTEM=pyproject
export PYBUILD_TEST_PYTEST=1

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

override_dh_auto_install:
	dh_auto_install
	test -n "$$(find debian/dumptales -type f -name '_dumptales_native*.so' -print -quit)" || { \
		echo 'Native extension was not staged in debian/dumptales' >&2; \
		find debian -type f >&2; \
		exit 1; \
	}
