1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#!/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 and \
not test_netrc_auth_from_env and \
not test_netrc_auth_skipped_without_env_var and \
not test_netrc_auth_overridden_by_explicit_auth"
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~)'
|