#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PYBUILD_NAME=pyppmd

# fuzzing tests fails with timeout often
export PYBUILD_TEST_ARGS = -k "not test_ppmd7_fuzzer and \
                               not test_ppmd8_fuzzer"

# Drop benchmark test for ports architecture.
# Because "cpuinfo" module is not reliable for ports architecture.
ifeq (,$(findstring $(DEB_HOST_ARCH),amd64 arm64 armhf i386 ppc64el riscv64 s390x))
  export PYBUILD_TEST_ARGS += -m "not benchmark"
endif

%:
	dh $@ --buildsystem=pybuild
