#!/usr/bin/make -f

#export DH_VERBOSE = 1
export PYBUILD_NAME=apptools

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/source build/html
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bman docs/source build/man

override_dh_auto_test:
	# skip python2 tests, which depend on removed python-pandas
	set -e; \
	PY3VERS=$$(py3versions -s -v); \
	for python in $$PY3VERS; do \
		pybuild --test --test-nose -i python{version} -p $$python; \
	done
