#!/usr/bin/make -f

export PYBUILD_NAME=gitless

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf .eggs
	rm -rf gitless.egg-info

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	'${CURDIR}/debian/run-simple-test.sh'
	env GITLESS=./gl '${CURDIR}/debian/run-upstream-test.sh'
endif

override_dh_missing:
	dh_missing --fail-missing
