#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export PYBUILD_NAME=geopandas
ifeq ($(PYBUILD_AUTOPKGTEST),1)
export PKGROOT=/usr/lib/python3/dist-packages/
endif
export PYBUILD_TEST_ARGS=-v \
 --ignore=${PKGROOT}geopandas/io/tests/test_file.py \
 --ignore=${PKGROOT}geopandas/tests/test_geocode.py \
 --ignore=${PKGROOT}geopandas/tests/test_overlay.py \
 --ignore=${PKGROOT}geopandas/tests/test_plotting.py \
 --pyargs geopandas

%:
	dh  $@ --buildsystem pybuild

execute_after_dh_auto_install:
	# Remove README with privacy-breach issues
	$(RM) debian/*/usr/lib/python*/dist-packages/geopandas/datasets/naturalearth_cities/naturalearth_cities.README.html
	$(RM) -r debian/*/usr/lib/python*/dist-packages/examples
