#!/usr/bin/make -f

#DH_VERBOSE=1

export PYBUILD_DISABLE=test
export SETUPTOOLS_SCM_IGNORE_VCS_ROOTS=$(CURDIR)

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

override_dh_installchangelogs:
	dh_installchangelogs -k NEWS.rst

execute_after_dh_auto_install:
	mkdir -p debian/python3-keyring/usr/share/bash-completion/completions
	PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(CURDIR) \
		debian/python3-keyring/usr/bin/keyring --print-completion bash \
		> $(CURDIR)/debian/python3-keyring/usr/share/bash-completion/completions/keyring
