#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

pytest_parallel=$(DEB_BUILD_OPTION_PARALLEL:%=-n%)

export PYBUILD_NAME=cheroot
export PYBUILD_TEST_ARGS=-k "not (test_https_over_http_error)" $(pytest_parallel) --pyargs cheroot.test
export PYBUILD_AFTER_TEST=rm -Rf {build_dir}/.test-results {build_dir}/.coverage
export LC_ALL=C.UTF-8
export http_proxy=
export https_proxy=

%:
	dh $@ --buildsystem=pybuild --max-parallel=3
