#!/usr/bin/make -f

UPSTREAM_GIT := https://github.com/tzangms/django-bootstrap-form.git

DH_VERBOSE = 1
export PYBUILD_NAME = django-bootstrapform
PYBUILD_TEST_ARGS = "{interpreter} runtests.py"

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

override_dh_sphinxdoc:
	PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' sphinx-build -b html docs \
		debian/python-django-bootstrapform-doc/usr/share/doc/python-django-bootstrapform-doc/html
	dh_sphinxdoc -O--buildsystem=pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="env PYTHONPATH={build_dir} DJANGO_SETTINGS_MODULE=tests.test_settings {interpreter} -m unittest bootstrapform/tests.py" \
	dh_auto_test
