#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=django-app-settings
## unittests fail on python 3.5
#export PYBUILD_DISABLE_python3=test


%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

.PHONY: override_dh_auto_build
override_dh_auto_build:
	PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html
	dh_auto_build

.PHONY: override_dh_auto_test
override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="{interpreter} ./runtests.py"

override_dh_clean:
	rm -rf docs/.build
	dh_clean
