#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk #export DH_VERBOSE=1 #export PYBUILD_VERBOSE=1 export PYBUILD_NAME=tox %: dh $@ --buildsystem=pybuild # The tests are not runnable during package build because many invoke the tox # command line. It's too much work to make the test suite run partially here # because upstream always changes the mix. override_dh_auto_test: ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) execute_after_dh_auto_build: export http_proxy=127.0.0.1:9 execute_after_dh_auto_build: export https_proxy=127.0.0.1:9 execute_after_dh_auto_build: # build HTML docs and manpages with Sphinx TOX_HASH_SEED=0 TOX_USER_CONFIG_FILE=/dev/null PYTHONPATH=src:$$PYTHONPATH \ python3 -m sphinx -N -bhtml docs/ build/html TOX_HASH_SEED=0 TOX_USER_CONFIG_FILE=/dev/null PYTHONPATH=src:$$PYTHONPATH \ python3 -m sphinx -N -bman docs/ build/man endif