#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
export SKIP_ARGS=not test_all_requirements \
and not test_core_object_creates_config_standard_location \
and not test_core_object_creates_locations_standard_location \
and not test_read_only_home_dir
export PYBUILD_TEST_ARGS=\
--ignore={dir}/tests/test_end_to_end.py \
-k "${SKIP_ARGS}" \
{dir}/tests

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_fixperms:
	chmod -x debian/python3-eodag/usr/lib/python*/dist-packages/eodag/resources/shp/ne_110m_admin_0_map_units.*
