1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/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
|