Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 #export DH_VERBOSE=1
5
6 include /usr/share/dpkg/pkg-info.mk
7
8 BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
9 SPHINXOPTS := -E -N -D html_last_updated_fmt="$(BUILD_DATE)"
10
11 export PYBUILD_NAME=flask-debugtoolbar
12
13 %:
14 dh $@ --buildsystem=pybuild
15
16 override_dh_clean:
17 dh_clean
18 rm -rf .mypy_cache
19
20 override_dh_sphinxdoc:
21 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
22 PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "flask_debugtoolbar*dist-info" | head -n1)` \
23 python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html
24 dh_sphinxdoc
25 endif
26
27 override_dh_auto_test:
28 dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} -m pytest -v"