| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
# some of the skipped tests are failing for unknown reasons: https://github.com/encode/uvicorn/discussions/1231 |
| 7 |
export PYBUILD_TEST_ARGS=-s --verbose -k 'not test_run and not test_invalid_upgrade and not test_default_headers and not test_trace_logging and not test_websocket_auto and not test_socket_bind and not test_access_logging and not test_default_logging and not test_server_interrupt and not test_unknown_status_code and not test_sigint_finish_req and not test_sigint_abort_req and not test_request_than_limit_max_requests_warn_log[h11] and not test_request_than_limit_max_requests_warn_log[httptools]' --ignore=tests/protocols/test_websocket.py |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --buildsystem=pybuild |
| 11 |
|
| 12 |
execute_after_dh_auto_build: |
| 13 |
LC_ALL=C.UTF-8 LANG=C.UTF-8 HOME=$(CURDIR)/.pybuild PATH=$(CURDIR)/debian/mkdocs-shim:$$PATH mkdocs build && mv $(CURDIR)/site $(CURDIR)/html |
| 14 |
rm -rf $(CURDIR)/html/plugins/__pycache__ |
| 15 |
rm -f $(CURDIR)/html/sitemap.xml.gz |
| 16 |
|
| 17 |
override_dh_mkdocs: |
| 18 |
dh_mkdocs --theme-package mkdocs-material |
| 19 |
|
| 20 |
execute_before_dh_installman: |
| 21 |
PYTHONPATH=$(CURDIR) help2man --no-discard-stderr -n 'ASGI server implementation, using uvloop and httptools' $(CURDIR)/debian/tmp/usr/bin/uvicorn >$(CURDIR)/uvicorn.1 |
| 22 |
|
| 23 |
execute_after_dh_clean: |
| 24 |
rm -rf $(CURDIR)/html |
| 25 |
|
| 26 |
override_dh_compress: |
| 27 |
dh_compress -Xsearch_index.json |