| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE = 1 |
| 3 |
export HOME=$(CURDIR) |
| 4 |
export PYBUILD_NAME=mapclassify |
| 5 |
export PYBUILD_TEST_ARGS=-v \ |
| 6 |
--ignore=mapclassify/tests/test_greedy.py \ |
| 7 |
--ignore=mapclassify/tests/test_rgba.py \ |
| 8 |
--ignore=mapclassify/tests/test_legendgram.py \ |
| 9 |
--ignore=mapclassify/tests/test_value_by_alpha.py \ |
| 10 |
--deselect=mapclassify/tests/test_mapclassify.py::TestPlots::test_histogram_plot \ |
| 11 |
--deselect=mapclassify/tests/test_mapclassify.py::TestPlots::test_histogram_plot_despine \ |
| 12 |
--deselect=mapclassify/tests/test_mapclassify.py::TestPlots::test_histogram_plot_linewidth |
| 13 |
%: |
| 14 |
dh $@ --buildsystem=pybuild |
| 15 |
|
| 16 |
# Build sphinx HTML documentation |
| 17 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 18 |
execute_after_dh_auto_build: |
| 19 |
if ! PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 -m sphinx -N -bhtml docs/ debian/html ; then \ |
| 20 |
cat /tmp/sphinx-err-*.log ; \ |
| 21 |
exit 1 ; \ |
| 22 |
fi |
| 23 |
endif |
| 24 |
|
| 25 |
download_remote_intersphinx_inventories: |
| 26 |
curl https://matplotlib.org/stable/objects.inv -o debian/intersphinx/matplotlib_objects.inv |
| 27 |
curl https://geopandas.org/en/stable/objects.inv -o debian/intersphinx/geopandas_objects.inv |
| 28 |
curl https://networkx.org/documentation/stable/objects.inv -o debian/intersphinx/networkx_objects.inv |
| 29 |
|
| 30 |
execute_before_dh_link-indep: |
| 31 |
jdupes -rl debian/python-mapclassify-doc |