#! /usr/bin/make -f export PYBUILD_NAME=pytest-flask %: dh $@ --with python3,sphinxdoc --buildsystem=pybuild override_dh_auto_build: dh_auto_build ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) cd docs && \ PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \ python3 -m sphinx -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/ rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees endif override_dh_auto_test: PYTHONPATH=$(CURDIR) PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -x -v tests" dh_auto_test