Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 #export DH_VERBOSE = 1
5
6 SPHINXOPTS := -E -N
7
8 export PYBUILD_NAME=flask-peewee
9 %:
10 dh $@ --buildsystem=pybuild
11
12 override_dh_clean:
13 dh_clean
14 rm -rf .mypy_cache
15
16 override_dh_auto_build:
17 dh_auto_build
18 find .pybuild -type f -name "*LICENSE.txt" -exec rm {} \;
19 PYTHONPATH=. python3 -m sphinx -b man $(SPHINXOPTS) docs/ -d debian/doctrees docs/build/man # Manpage generator
20
21 override_dh_sphinxdoc:
22 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
23 PYTHONPATH=. python3 -m sphinx -b html $(SPHINXOPTS) docs/ $(CURDIR)/debian/python-flask-peewee-doc/usr/share/doc/python-flask-peewee-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} runtests.py"
29
30 override_dh_auto_clean:
31 dh_auto_clean
32 rm -rf debian/doctrees
33 rm -rf docs/build
34 rm -f test.db
35
36 override_dh_link:
37 dh_link
38 # Use Debian-packaged jquery and and underscore
39 dh_link -ppython3-flask-peewee /usr/share/javascript/jquery/jquery.min.js usr/lib/python3/dist-packages/flask_peewee/static/js/jquery.min.js
40 dh_link -ppython3-flask-peewee /usr/share/javascript/bootstrap5/js/bootstrap.js usr/lib/python3/dist-packages/flask_peewee/static/js/bootstrap.js
41 dh_link -ppython3-flask-peewee /usr/share/javascript/bootstrap5/js/bootstrap.min.js usr/lib/python3/dist-packages/flask_peewee/static/js/bootstrap.min.js