#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export PYBUILD_NAME=tavern

# Disable some of the tests:
# - anything grpc-related because of breakage on the debian end, see list of bugs in d/control
# - part of test_mqtt.py because module 'paho.mqtt.client' has no attribute 'mqtt_cs_connected'
export PYBUILD_TEST_ARGS= \
	--ignore=tests/unit/tavern_grpc/ \
	--ignore=tavern/_plugins/grpc/ \
	--deselect=tests/unit/test_extensions.py::TestGrpcCodes	\
	--deselect=tests/unit/test_mqtt.py::TestClient
%:
	dh $@ --buildsystem=pybuild

execute_before_dh_installman:
	PYTHONPATH=. help2man -n'Tool for automated testing of APIs' \
		--version-string=$(DEB_VERSION_UPSTREAM) --no-info \
		debian/python3-tavern/usr/bin/tavern-ci > tavern-ci.1
