Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 export PYBUILD_NAME=pytest-trio
7 export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.coverage {build_dir}/.pytest_cache
8
9 %:
10 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
11
12 execute_before_dh_sphinxdoc:
13 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
14 PYTHONPATH=$(CURDIR) python3 -m sphinx -b html -d $(CURDIR)/docs/source/.build/.doctrees -N $(CURDIR)/docs/source $(CURDIR)/debian/python-pytest-trio-doc/usr/share/doc/python-pytest-trio-doc/html
15 endif
16
17 execute_after_dh_clean:
18 rm -rf $(CURDIR)/docs/source/.build