#!/usr/bin/make -f

export PYBUILD_NAME=mycli

export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }' | rev | cut -d- -f2- | rev)

%:
	dh ${@} --buildsystem=pybuild

execute_after_dh_auto_clean:
	# help pybuild
	rm -rf *.egg-info

execute_after_dh_auto_install:
	# removing useless files
	rm -f debian/mycli/usr/lib/python3/dist-packages/mycli/AUTHORS
	rm -f debian/mycli/usr/lib/python3/dist-packages/mycli/SPONSORS

override_dh_auto_test:
	# disabled, doesn't work yet