File: rules

package info (click to toggle)
mapclassify 2.8.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,632 kB
  • sloc: python: 2,521; makefile: 44; lisp: 7
file content (32 lines) | stat: -rwxr-xr-x 1,087 bytes parent folder | download
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
26
27
28
29
30
31
32
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export HOME=$(CURDIR)
export PYBUILD_NAME=mapclassify
export PYBUILD_TEST_CUSTOM=1

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# tests ignored due to maintaining external connection at build time
	pytest -v --ignore=mapclassify/tests/test_greedy.py --ignore=mapclassify/tests/test_rgba.py
	dh_auto_test
endif

# Build sphinx HTML documentation
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
	if ! PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 -m sphinx -N -bhtml docs/ debian/html ; then \
		cat /tmp/sphinx-err-*.log ; \
		exit 1 ; \
	fi
endif

download_remote_intersphinx_inventories:
	curl https://matplotlib.org/stable/objects.inv -o debian/intersphinx/matplotlib_objects.inv
	curl https://geopandas.org/en/stable/objects.inv -o debian/intersphinx/geopandas_objects.inv
	curl https://networkx.org/documentation/stable/objects.inv -o debian/intersphinx/networkx_objects.inv

execute_before_dh_link-indep:
	jdupes -rl debian/python-mapclassify-doc