#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE = 1

export PYBUILD_BEFORE_TEST=cp -a {dir}/qtpy/tests/*.ui {build_dir}/qtpy/tests/
export PYBUILD_NAME = qtpy

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

empty :=
space := $(empty)$(empty)
# skip webengine test on arches not supported by QtWebEngine
QTWEBENGINE_SUPPORTED_ARCH_LIST = amd64 arm64 armhf i386 mips64el mipsel
ifeq (,$(findstring $(space)$(DEB_HOST_ARCH)$(space), $(space)$(QTWEBENGINE_SUPPORTED_ARCH_LIST)$(space)))
override_dh_auto_test:
	dh_auto_test -- --test-args "-k 'not webengine'"
endif
