| 1 |
#!/usr/bin/make -f |
| 2 |
export PYBUILD_NAME = pexpect |
| 3 |
|
| 4 |
# pxssh wants to bind a low-numbered port |
| 5 |
# replwrap has issues when wrapping a readline-enabled command when |
| 6 |
# bracketed-paste mode is enabled, which results in extra escape sequences |
| 7 |
# pexpect isn't... expecting |
| 8 |
# test_beforeacross_chunks seems to contain a race condition as to whether |
| 9 |
# the captured output contains a newline or not, which it then asserts |
| 10 |
# test_spawn_uses_env appears to rarely fail with no exit code (also a race?) |
| 11 |
# test_socket failed with permission error due to leftover instances of multiprocessing |
| 12 |
export PYBUILD_TEST_ARGS = -k 'not (pxssh or replwrap or test_before_across_chunks or test_spawn_uses_env or test_socket)' |
| 13 |
|
| 14 |
# this skips two further tests upstream knows to be flaky in their CI |
| 15 |
export CI = 1 |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ --buildsystem=pybuild |
| 19 |
|
| 20 |
execute_after_dh_auto_clean: |
| 21 |
rm -rf .coverage |
| 22 |
|
| 23 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 24 |
execute_after_dh_auto_build: |
| 25 |
PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml doc/ build/html |
| 26 |
endif |
| 27 |
|
| 28 |
override_dh_installdocs: |
| 29 |
dh_installdocs -ppython-pexpect-doc build/html |
| 30 |
dh_installdocs -A |