#! /usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all # setup.py marks the C speedups extension optional unless BUILD_EXTENSION is # set, i.e. a compilation failure would silently produce a pure-Python package. export BUILD_EXTENSION = yes # extend timeout on slow buildds to fix FTBFS # see https://github.com/python-websockets/websockets/issues/163 # Upstream now defaults to the same factor for released versions; keep this # explicit so the mitigation does not depend on version.released being true. export WEBSOCKETS_TESTS_TIMEOUT_FACTOR = 100 # websockets reads its proxy configuration from the environment, see # https://websockets.readthedocs.io/en/stable/topics/proxies.html, and the test # suite assumes that none is configured. These have to be set *empty* rather # than unset: pybuild replaces an absent http_proxy/https_proxy with a black # hole at 127.0.0.1:9, and only drops them when they are present but empty. # They are exported rather than set on a dh_auto_test override so that they # also reach pybuild-autopkgtest, which includes this file but runs no override. export http_proxy = export https_proxy = export ws_proxy = export wss_proxy = export socks_proxy = export PYBUILD_NAME = websockets %: dh $@ --buildsystem=pybuild