#!/usr/bin/make -f export PYBUILD_NAME=cycler %: dh $@ --buildsystem=pybuild override_dh_auto_test: dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} -m pytest -v" ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) execute_after_dh_auto_build: PYTHONPATH=. $(MAKE) -C doc html SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build execute_after_dh_installdocs: ln -s /usr/share/javascript/mathjax/MathJax.js $(CURDIR)/doc/build/html/_static/MathJax.js find doc/build/html -name "*.html" -exec sed -i "s|https://cdn.mathjax.org/mathjax/latest/MathJax.js|_static/MathJax.js|" {} \; dh_installdocs -ppython-cycler-doc doc/build/html endif execute_after_dh_auto_clean: rm -f doc/build -R rm -f doc/source/generated -R