| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
SPHINXOPTS := -E -N |
| 7 |
|
| 8 |
export PYBUILD_NAME=werkzeug |
| 9 |
export PYBUILD_TEST_PYTEST=1 |
| 10 |
export PYBUILD_BEFORE_INSTALL=rm -rf {build_dir}/werkzeug/debug/shared/ICON_LICENSE.md |
| 11 |
export PYBUILD_TEST_ARGS=--ignore tests/middleware/test_http_proxy.py --ignore tests/test_serving.py \ |
| 12 |
'-k not test_basic \ |
| 13 |
and not test_server \ |
| 14 |
' |
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ --buildsystem=pybuild |
| 18 |
|
| 19 |
override_dh_auto_clean: |
| 20 |
make -C docs clean |
| 21 |
rm -rf build Werkzeug.egg-info/ |
| 22 |
#find $(CURDIR) \( -name '\._*' -o -name '\.DS_Store' \) -delete |
| 23 |
find . -iname '__pycache__' -exec rm -rf {} \; || true |
| 24 |
rm -rf .pytest_cache .mypy_cache debian/doctrees |
| 25 |
dh_auto_clean |
| 26 |
|
| 27 |
override_dh_fixperms: |
| 28 |
find debian/ -name '*\.png' -exec chmod -x '{}' \; |
| 29 |
dh_fixperms |
| 30 |
|
| 31 |
override_dh_installdocs: |
| 32 |
dh_installdocs --doc-main-package=python-werkzeug-doc -ppython-werkzeug-doc |
| 33 |
dh_installdocs |
| 34 |
|
| 35 |
override_dh_installexamples: |
| 36 |
dh_installexamples --doc-main-package=python-werkzeug-doc -ppython-werkzeug-doc |
| 37 |
|
| 38 |
override_dh_sphinxdoc: |
| 39 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 40 |
PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "werkzeug*dist-info" | head -n1)` \ |
| 41 |
python3 -m sphinx -b html docs/ -d debian/doctrees $(SPHINXOPTS) debian/python-werkzeug-doc/usr/share/doc/python-werkzeug-doc/html/ |
| 42 |
dh_sphinxdoc |
| 43 |
endif |