#!/usr/bin/make -f export PYBUILD_NAME=sphinx_contributors #Disabling test that may need github access via network. export PYBUILD_TEST_ARGS=-v -k 'not test_contributor_directive' %: dh $@ --buildsystem=pybuild execute_after_dh_auto_install: find debian/python3-sphinx-contributors -type d -name '__pycache__' -exec rm -rf {} + ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) execute_before_dh_installdocs: https_proxy='127.0.0.1:9' sphinx-build -b html docs/source build/sphinx/html dh_installdocs -ppython-sphinx-contributors-doc --doc-main-package=python-sphinx-contributors-doc build/sphinx/html endif