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