#!/usr/bin/make -f

export PYBUILD_NAME=timezonefinder
export PYBUILD_TEST_PYTEST=1

NUMBA_VERSION := $(shell dpkg-query -W -f='$${Version}' python3-numba)
ifeq ($(shell dpkg --compare-versions $(NUMBA_VERSION) lt 0.40 && echo yes),yes)
    # Raises NotImplementedError in Numba
    export PYBUILD_TEST_ARGS=-v -k "not test_convert2coords"
else
    export PYBUILD_TEST_ARGS=-v
endif

%:
	dh $@ --with python3 --buildsystem=pybuild
