#!/usr/bin/make -f

export PYBUILD_NAME=requests_cache
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-requests-cache#n43
export PYBUILD_TEST_ARGS=--ignore=tests/integration
export PYBUILD_AFTER_TEST=rm -v {build_dir}/http_cache.sqlite

%:
	dh $@ --buildsystem=pybuild

# upstream ships this module with the executable bit set
execute_after_dh_fixperms:
	chmod -x debian/python3-requests-cache/usr/lib/python3/dist-packages/requests_cache/models/response.py
