Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 export PYTHONWARNINGS=d
6 export PYBUILD_NAME=sphinxcontrib.spelling
7 # test_contributors is meant to run on the repository (it get contributors
8 # using `git log` and test_builder.py need the package to be installed.
9 export export PYBUILD_TEST_ARGS = -v -k 'not test_contributors' \
10 --ignore tests/test_builder.py
11 export PYENCHANT_VERBOSE_FIND=1
12
13 %:
14 dh $@ --with sphinxdoc --buildsystem=pybuild
15
16 override_dh_sphinxdoc:
17 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
18 PYTHONPATH=. python3 -m sphinx -b html docs/source \
19 debian/python-sphinxcontrib.spelling-doc/usr/share/doc/python-sphinxcontrib.spelling-doc/html/
20 dh_sphinxdoc
21 endif