1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/usr/bin/make -f
export PYBUILD_NAME=djangorestframework_api_key
%:
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
dh $@ --with python3,mkdocs --buildsystem=pybuild
else
dh $@ --with python3 --buildsystem=pybuild
endif
override_dh_auto_build:
dh_auto_build
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
PYTHONPATH=. http_proxy='127.0.0.1:9' mkdocs build --clean --site-dir build/html
endif
override_dh_installdocs:
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
dh_installdocs --doc-main-package=python3-djangorestframework-api-key --package=python-djangorestframework-api-key-doc
endif
dh_installdocs --package=python3-djangorestframework-api-key
override_dh_auto_test:
# Currently does not work
# Looks like it needs a working Django database
|