Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 #export DH_VERBOSE=1
6 #export PYBUILD_VERBOSE=1
7 export PYBUILD_NAME=tox
8
9 %:
10 dh $@ --buildsystem=pybuild
11
12 # The tests are not runnable during package build because many invoke the tox
13 # command line. It's too much work to make the test suite run partially here
14 # because upstream always changes the mix.
15 override_dh_auto_test:
16
17 ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
18 execute_after_dh_auto_build: export http_proxy=127.0.0.1:9
19 execute_after_dh_auto_build: export https_proxy=127.0.0.1:9
20 execute_after_dh_auto_build:
21 dh_doc_privacy docs/
22 # build HTML docs with Sphinx
23 TOX_HASH_SEED=0 TOX_USER_CONFIG_FILE=/dev/null PYTHONPATH=src:$$PYTHONPATH \
24 python3 -m sphinx \
25 -N -bhtml -D towncrier_draft_include_empty=0 \
26 docs/ build/html
27 ln -s /usr/share/javascript/d3/d3.min.js build/html/_static/
28 endif