#!/usr/bin/make -f

export PYBUILD_NAME=braceexpand
%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(eval BUILD_DIR=$(shell pybuild --print '{build_dir}'))
	cp -r test_braceexpand.py $(BUILD_DIR)
	dh_auto_test
	rm $(BUILD_DIR)/test_braceexpand.py
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -rf braceexpand.egg-info
