1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=flask-bootstrap
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
export PYBUILD_TEST_ARGS=--ignore=tests/test_bootstrap4/test_render_form.py \
--ignore=tests/test_bootstrap5/test_render_form.py \
--ignore=tests/test_bootstrap4/test_bootstrap.py \
--ignore=tests/test_bootstrap5/test_bootstrap5.py
#override_dh_auto_test:
# Build sphinx HTML documentation
override_dh_auto_build:
dh_auto_build
PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 -m sphinx -N -bhtml docs/ debian/html
# Fixe privacy-breach-generic
override_dh_link:
dh_link
find debian/python3-flask-bootstrap/ -name '*.css' -exec sed -i 's|@import url("https://fonts.googleapis.com||g' {} \;
find debian/python-flask-bootstrap-doc/ -name '*.html' -exec sed -i 's|src="https:||g' {} \;
|