#!/usr/bin/make -f
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

BASE_TEST_EXCLUSIONS = not exchange_calendars.utils.pandas_utils.indexes_union

ifeq ($(DEB_HOST_ARCH),riscv64)
# Skip minute-resolution tests on riscv64: they run 4x via all_calendars_with_answers
# (parameterized by side: both/left/right/neither) and cause the test suite to
# time out. Non-minute tests are retained for functional coverage.
export PYBUILD_TEST_ARGS=-k "$(BASE_TEST_EXCLUSIONS) and not minute"
else
export PYBUILD_TEST_ARGS=-k "$(BASE_TEST_EXCLUSIONS)"
endif

%:
	dh $@ --buildsystem=pybuild
