#!/usr/bin/make -f

export PYBUILD_NAME=pytest-subunit
# The test file is not installed, so copy it into the build directory; running
# it from the source tree instead would put both that directory and the build
# directory on sys.path, and pytest then refuses to register the plugin twice.
export PYBUILD_BEFORE_TEST=cp $(CURDIR)/test_pytest_subunit.py {build_dir}
export PYBUILD_AFTER_TEST=rm -f {build_dir}/test_pytest_subunit.py

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