| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME = hypercorn |
| 4 |
export PYBUILD_TEST_ARGS = --ignore=tests/test_app_wrappers.py --ignore=tests/middleware/test_dispatcher.py -k "not test_keep_alive_max_requests_regression" |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 8 |
|
| 9 |
execute_after_dh_fixperms: |
| 10 |
find $(CURDIR)/debian/python3-hypercorn/usr/lib/python3 -type f -exec chmod 0644 {} \; |
| 11 |
|
| 12 |
execute_before_dh_installman: |
| 13 |
PYTHONPATH=$$(pybuild --print build_dir --name hypercorn |head -n1 |awk -F ': ' '{print $$2}') help2man --no-discard-stderr -n "ASGI Server based on Hyper libraries and inspired by Gunicorn" $(CURDIR)/debian/python3-hypercorn/usr/bin/hypercorn >hypercorn.1 |
| 14 |
|
| 15 |
execute_before_dh_sphinxdoc: |
| 16 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 17 |
PYTHONPATH=$$(pybuild --print build_dir --name hypercorn |head -n1 |awk -F ': ' '{print $$2}') python3 -m sphinx -b html -d $(CURDIR)/docs/.build/.doctrees -N $(CURDIR)/docs $(CURDIR)/debian/python-hypercorn-doc/usr/share/doc/python-hypercorn-doc/html |
| 18 |
endif |
| 19 |
|
| 20 |
execute_after_dh_clean: |
| 21 |
rm -rf $(CURDIR)/docs/.build |