#!/usr/bin/make -f export PYBUILD_NAME = aiohttp export PYBUILD_TEST_ARGS=--no-cov \ --ignore-glob=tests/test_benchmark* \ --ignore=tests/test_imports.py \ --ignore=tests/test_pytest_plugin.py \ --ignore=tests/test_client_session.py \ --ignore=tests/test_proxy_functional.py \ --ignore=tests/test_urldispatch.py \ --ignore=tests/test_web_response.py \ --ignore=tests/test_streams.py \ --ignore=tests/test_cookiejar.py \ --ignore=tests/test_web_functional.py \ --ignore=tests/test_connector.py \ --ignore=tests/test_web_sendfile_functional.py \ -k "not test_testcase_no_app and \ not test_static_file_directory_traversal_attack and \ not test_empty_body and \ not test_feed_eof_no_err_brotli and \ not test_http_response_parser_strict_obs_line_folding and \ not test_http_response_parser_strict_headers and \ not test_http_response_parser_bad_chunked_strict_py and \ not test_http_response_parser_bad_chunked_strict_c" export DEB_BUILD_MAINT_OPTIONS = hardening=+all # Work around https://bugs.debian.org/1051837 egg_info := aiohttp.egg-info egg_info_safe := debian/aiohttp.egg-info.safe define save-egg-info = if [ ! -d $(egg_info_safe) ]; then cp -a $(egg_info) $(egg_info_safe); fi endef define restore-egg-info = if [ -d $(egg_info_safe) ]; then rm -rf $(egg_info); cp -a $(egg_info_safe) $(egg_info); fi endef %: dh $@ --with python3,sphinxdoc --buildsystem pybuild override_dh_auto_build: $(save-egg-info) # Ignore missing references. ${MAKE} -C docs html SPHINXOPTS= dh_auto_build find . -type d -name '.hash' -exec rm -rf {} + override_dh_auto_clean: rm -rf .cache $(save-egg-info) dh_auto_clean $(restore-egg-info) override_dh_strip: dh_strip --dbgsym-migration='python3-aiohttp-dbg (<< 3.7.4-2~)'