#!/usr/bin/make -f export PYBUILD_TEST_PYTEST = 1 export PYBUILD_TEST_ARGS = test.py # run cram tests after the console script has been installed ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) export PYBUILD_AFTER_INSTALL = \ PATH="$$PATH:{destdir}/usr/bin" \ PYTHONPATH="{destdir}{install_dir}" \ cram3 test.cram endif %: dh $@ --buildsystem=pybuild ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS))) execute_after_dh_auto_build: README.html GITHUB = https://raw.github.com/git-big-picture/git-big-picture/master/ README.html: README.rst rst2html $^ $@ # don't use external images (privacy-breach-generic) sed -i -e 's|$(GITHUB)||g' -e '/badge\.svg/d' $@ endif