#!/usr/bin/make -f # export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all # Use pytest, pointing it to the right test file. export PYBUILD_TEST_PYTEST = 1 export PYBUILD_NAME = jellyfish export PYBUILD_BEFORE_TEST = cp -R {dir}/testdata {build_dir} export PYBUILD_AFTER_TEST = rm -R {build_dir}/testdata export PYBUILD_TEST_ARGS = jellyfish/test.py %: dh $@ --with python3,sphinxdoc --buildsystem=pybuild override_dh_auto_build: dh_auto_build ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES))) # HTML and manpage generators. PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/ build/html PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bman docs/ build/man endif override_dh_installchangelogs: dh_installchangelogs -k docs/changelog.rst