diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..3fa2c3b --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/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 |