#!/usr/bin/make -f

export PYBUILD_NAME = hypercorn
export PYBUILD_TEST_ARGS = --ignore=tests/trio --ignore=tests/test_app_wrappers.py --ignore=tests/middleware/test_dispatcher.py

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_fixperms:
	find $(CURDIR)/debian/python3-hypercorn/usr/lib/python3 -type f -exec chmod 0644 {} \;

execute_before_dh_installman:
	PYTHONPATH=src help2man --no-discard-stderr -n "ASGI Server based on Hyper libraries and inspired by Gunicorn" $(CURDIR)/debian/python3-hypercorn/usr/bin/hypercorn >hypercorn.1
