1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
export PYBUILD_NAME=meshplex
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
dh_auto_build
PYTHONPATH=. sphinx-build -M html docs/ .pybuild/docs
override_dh_auto_test:
for testdir in .pybuild/*/build/test; do ln -s $(CURDIR)/test/meshes $$testdir/meshes; done
MPLBACKEND=Agg dh_auto_test -- --test-args="--ignore-glob=*test_io*"
override_dh_sphinxdoc-indep:
dh_sphinxdoc -i
grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js" debian/python-meshplex-doc/usr/share/doc/python-meshplex-doc/* -r --files-with-matches | xargs sed "s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js|src=\"file://usr/share/javascript/mathjax/unpacked/latest.js|g" -i
grep "https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" debian/python-meshplex-doc/usr/share/doc/python-meshplex-doc/* -r --files-with-matches | xargs sed "s|src=\"https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png|src=\"_static/forkme_right_darkblue_121621.png|g" -i
|