1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME = urlwatch
# Documentation snippets are unit-tested, thus tests need access to documentation sources
export PYBUILD_BEFORE_TEST=cp -r {dir}/docs {build_dir}/../; \
cp -r {dir}/lib/urlwatch/tests {build_dir}/urlwatch/
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/../docs {build_dir}/urlwatch/tests
override_dh_sphinxdoc:
sphinx-build -N -bhtml $(CURDIR)/docs/source $(CURDIR)/debian/urlwatch/usr/share/doc/urlwatch/html
dh_sphinxdoc
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
|