#!/usr/bin/make -f

export PYBUILD_NAME=patch-manager

export PYBUILD_TEST_PYTEST=1
# The tests are in the package itself, so have pytest find them there,
# which is the installed package when run by autopkgtest
export PYBUILD_TEST_ARGS=--pyargs patman

%:
	dh $@ --buildsystem=pybuild

# Debian already has an unrelated /usr/bin/patman (the PatMaN aligner), so
# ship only the upstream alternative name, patch-manager
execute_after_dh_auto_install:
	rm debian/patch-manager/usr/bin/patman
