#! /usr/bin/make -f

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

execute_after_dh_auto_build:
ifeq (,$(filter nodoc, ${DEB_BUILD_OPTIONS}))
	${MAKE} -C docs SPHINXOPTS="--keep-going" man
endif

override_dh_auto_test:
	PYTHONPATH=${CURDIR} \
	    pytest -v tests/*.py

# for now, do not ship qmp-tui
execute_after_dh_auto_install:
	rm -f debian/python3-qemu-qmu/usr/bin/qmp-tui
