#! /usr/bin/make -f

export PYBUILD_NAME=asyncpg
export PYBUILD_BUILD_ARGS=--config-setting=--cython-always=
export PYBUILD_TEST_ARGS=-k "not test_flake8"
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3 --without=single-binary --buildsystem=pybuild

execute_after_dh_auto_install:
	find debian/python3-asyncpg/usr/lib \( -name '*.c' -or -name '*.h' -or -name '*.px[di]' -or -name '*.pyx' \) -delete
