#!/usr/bin/make -f

export PYBUILD_NAME=respx
export PYTEST_ADDOPTS = --asyncio-mode=auto --cov-fail-under 95 -k 'not test_pass_through[httpcore-route0-True] and not test_pass_through[httpcore-route2-False] and not test_pass_through[httpcore-route3-True]'

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

execute_after_dh_auto_install:
	# Exclude coverage from installing
	rm -f debian/python3-respx/usr/lib/python3*/dist-packages/coverage.xml
	rm -f debian/python3-respx/usr/lib/python3*/dist-packages/.coverage

override_dh_installdocs:
	PYTHONPATH=. https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' mkdocs build -d build/html
	dh_installdocs -p python-respx-doc --doc-main-package=python-respx-doc
	dh_installdocs

override_dh_clean:
	dh_clean
	rm -f coverage.xml
	rm -f .coverage
	rm -f .debhelper
	rm -f respx.egg-info
