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 27 28 29 30 31 32
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
include /usr/share/dpkg/default.mk
BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
SPHINXOPTS := -E -N -D html_last_updated_fmt="$(BUILD_DATE)"
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export DEB_VERSION_UPSTREAM # used by patched docs/conf.py
export PYBUILD_NAME=click
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS=-k 'not test_expand_args' {dir}/tests/
export SOURCE = $(CURDIR)/debian/
%:
dh $@ --buildsystem=pybuild
execute_before_dh_sphinxdoc:
PYTHONPATH=src/ python3 -m sphinx -b html $(SPHINXOPTS) docs/ debian/python-click-doc/usr/share/doc/python-click-doc/html/
override_dh_installexamples:
dh_installexamples -ppython-click-doc examples/*
execute_after_dh_fixperms:
rm -f debian/python-click-doc/usr/share/doc/python-click-doc/examples/imagepipe/.gitignore
|