#!/usr/bin/make -f export PYBUILD_NAME = kitchen export PYBUILD_BEFORE_TEST_python3 = cp -a {dir}/kitchen3/tests {build_dir}/tests export PYBUILD_AFTER_TEST = rm -rf {build_dir}/tests # Necessary because of the i18n tests export LANGUAGE = export PYTHONUTF8 = 0 # Temporary measure until upstream updates the unicode table according # to Python 3.6. See #868680. export PYBUILD_TEST_ARGS_python3 = --exclude=test_text_display.py %: dh $@ --with python3,sphinxdoc --buildsystem=pybuild override_dh_auto_build: dh_auto_build # Docs from kitchen2 and kitchen3 are basically the same, so we just # use the ones from kitchen3. PYTHONPATH=$(CURDIR)/kitchen3/ http_proxy='127.0.0.1:9' \ python3 -m sphinx -N -bhtml kitchen3/docs/ kitchen3/docs/_build/html PYTHONPATH=$(CURDIR)/kitchen3/ http_proxy='127.0.0.1:9' \ python3 -m sphinx -N -bman kitchen3/docs/ kitchen3/docs/_build/man # test-kitchen also installs a manpage named kitchen.1. mv kitchen3/docs/_build/man/kitchen.1 kitchen3/docs/_build/man/python-kitchen.1 override_dh_installdocs: dh_installdocs -ppython-kitchen-doc --doc-main-package=python3-kitchen dh_installdocs --remaining-packages