#!/usr/bin/make -f

export PYBUILD_NAME = aiohttp-socks
# enable pytest also here to make backports easier
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export PYBUILD_DESTDIR_python3=debian/python3-aiohttp-socks/
export PYBUILD_DESTDIR_python3-dbg=debian/python3-aiohttp-socks-dbg/
export PYBUILD_SYSTEM=distutils

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

override_dh_auto_clean:
	rm -rf .cache
	dh_auto_clean

override_dh_auto_build::
	dh_auto_build

override_dh_dwz:
	dh_dwz -ppython3-aiohttp-socks-dbg

override_dh_strip:
	dh_strip --no-automatic-dbgsym

override_dh_auto_test:
	# disable tests for now:
	# https://bugs.python.org/issue28634 needs to be fixed in Debian
	# and tests patched to not access internet during build (see https://bugs.debian.org/830567)
