#!/usr/bin/make -f #export DH_VERBOSE = 1 export PYBUILD_NAME=pointpats export PYBUILD_TEST_ARGS=-v -p no:warnings -k 'not test_spacetime.py' --pyargs pointpats %: dh $@ --buildsystem=pybuild override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) pytest -v -p no:warnings -k 'not test_spacetime.py' pointpats/tests/ endif ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS))) execute_after_dh_auto_build: PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 -m sphinx -N -d debian/doctrees -bhtml docs/ debian/html endif override_dh_link: dh_link # Fixe duplicate-files jdupes -rl debian/python-pointpats-doc/ # Fix privacy-breach-generic execute_after_dh_link: find debian/python-pointpats-doc/ -name '*.html' -exec sed -i 's/src=/""/g' {} \; #Fix embedded-javascript-library find debian/python-pointpats-doc/ -type f -name '*.js' -delete find debian/python-pointpats-doc/ -type d -name 'js' -exec rm -rf {} + #Fix font-in-non-font-package find debian/python-pointpats-doc/ -type d -name 'fonts' -exec rm -rf {} +