#!/usr/bin/make -f #export DH_VERBOSE=1 export PYBUILD_NAME=jinja2 %: dh $@ --with python3,sphinxdoc --buildsystem=pybuild override_dh_auto_clean: make -C docs clean dh_auto_clean override_dh_auto_build: # make sure installed version of jinja2 is not used during tests: dh_auto_build -- --disable=test pybuild --test --system=custom --test-args='PYTHONPATH="{build_dir}" {interpreter} -m pytest tests' # build documentation PYTHONPATH=$(CURDIR)/src:$(CURDIR)/docs make -C docs html override_dh_installdocs: # install into -doc package and keep the symlink dh_installdocs -p python-jinja2-doc --doc-main-package python-jinja2-doc dh_installdocs --remaining override_dh_installexamples: # install into -doc package and keep the symlink dh_installexamples -p python-jinja2-doc --doc-main-package python-jinja2-doc dh_installexamples --remaining override_dh_installchangelogs: dh_installchangelogs CHANGES.rst