#!/usr/bin/make -f
export PYBUILD_TEST_ARGS=-vv --durations=10 -k "\
	not postgres and \
	not test_limiter_constructor_02 and \
	not test_bucket_leak and \
	not test_factory_leak and \
	not test_limiter_async_factory_get and \
	not test_mp_bucket_async and \
	not test_limiter_concurrency"
export PYBUILD_BEFORE_TEST=redis-server --daemonize yes
export PYBUILD_AFTER_TEST=redis-cli shutdown

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build $@ --buildsystem=pybuild
	cd docs; PYTHONPATH=$(CURDIR) LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 sphinx-build -bhtml -d _build/doctrees . _build/html
