debian/rules
raw| 1 | #! /usr/bin/make -f |
| 2 | |
| 3 | export PYBUILD_NAME=behave |
| 4 | export PYBUILD_TEST_ARGS=test |
| 5 | |
| 6 | %: |
| 7 | dh $@ --with sphinxdoc --buildsystem=pybuild |
| 8 | |
| 9 | override_dh_auto_build-indep: |
| 10 | dh_auto_build -i |
| 11 | ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 12 | cd docs && \ |
| 13 | PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \ |
| 14 | python3 -m sphinx -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/ |
| 15 | rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees |
| 16 | endif |