#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=pyzipper

%:
	dh $@ --buildsystem=pybuild

ifneq ($(PYBUILD_AUTOPKGTEST),1)
# Deselect test since executables are not available before installation
export PYBUILD_BEFORE_TEST=cp -r {dir}/test {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/test
export PYBUILD_TEST_ARGS=-v -p no:warnings \
	-k 'not test_temp_dir__forked_child \
		and not test_bad_use \
		and not test_create_command \
		and not test_extract_command \
                and not test_args_from_interpreter_flags \
                and not test_main \
		and not test_test_command'
endif

# test_main fails on Python3.13 with "AttributeError: module 'unittest' has no attribute 'makeSuite'"
