| 1 |
#! /usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=httpx |
| 4 |
export PYBUILD_DISABLE=test |
| 5 |
|
| 6 |
# Use dynamic port for unittest embedded webservers |
| 7 |
# Also see debian/patches/0000-Debianize-unittests-run |
| 8 |
# export HTTPX_TEST_HTTP_PORT=$(shell python3 -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()') |
| 9 |
# export HTTPX_TEST_HTTPS_PORT=$(shell python3 -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()') |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --with python3 --buildsystem=pybuild |
| 13 |
|
| 14 |
override_dh_auto_test: |
| 15 |
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES)),) |
| 16 |
for python in $(shell py3versions --supported); do \ |
| 17 |
$$python -m pytest -v -Wignore -k 'not test_connect_timeout and not test_sync_proxy_close and not test_async_proxy_close'; \ |
| 18 |
done |
| 19 |
endif |