#!/usr/bin/make -f
export PYBUILD_TEST_ARGS = \
	--deselect tests/test_cli.py::test_discover_raw \
	--deselect tests/test_cli.py::test_cli_child_commands \
	--ignore tests/test_readme_examples.py

%:
	dh $@ --buildsystem=pybuild


override_dh_auto_build:
	dh_auto_build $@ --buildsystem=pybuild
	dh_doc_privacy
	cd docs; PYTHONPATH=$(CURDIR) LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 sphinx-build -bhtml -d _build/doctrees source _build/html

override_dh_fixperms:
	dh_fixperms
	chmod -x $(CURDIR)/debian/*/usr/lib/python3/dist-packages/*/*/*.py $(CURDIR)/debian/*/usr/lib/python3/dist-packages/*/*.py
