1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/usr/bin/make -f
# output every command that modifies files on the build system.
# export DH_VERBOSE = 1
export PYBUILD_NAME=flask-dance
%:
dh $@ --with sphinxdoc --buildsystem=pybuild
execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
PYTHONPATH=. sphinx-build -N -bhtml docs/ build/html
endif
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="python3-coverage run -m pytest -m \"not install_required\"" \
dh_auto_test
endif
|