Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 export PYBUILD_NAME=betamax
4
5 # test_fixtures.py needs package already installed and remaining tests need
6 # Internet connection.
7 export PYBUILD_TEST_ARGS = --ignore tests/integration/test_fixtures.py \
8 --ignore tests/integration/test_hooks.py \
9 --ignore tests/integration/test_placeholders.py \
10 --ignore tests/integration/test_record_modes.py \
11 --ignore tests/integration/test_unicode.py \
12 --ignore tests/regression/test_gzip_compression.py \
13 --ignore tests/regression/test_requests_2_11_body_matcher.py \
14 -k "not test_adds_stop_as_a_finalizer and not test_auto_starts_the_recorder"
15
16 %:
17 dh $@ --with sphinxdoc --buildsystem=pybuild
18
19 execute_before_dh_auto_install:
20 find .pybuild -type f -name test_cassette.test -delete
21
22 override_dh_sphinxdoc:
23 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
24 PYTHONPATH=. python3 -m sphinx -b html docs/source/ \
25 debian/python-betamax-doc/usr/share/doc/python-betamax-doc/html/
26 dh_sphinxdoc
27 endif