| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
export PYBUILD_NAME=djangorestframework_api_key |
| 7 |
|
| 8 |
export PYBUILD_DISABLE=test |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --with mkdocs --buildsystem=pybuild |
| 12 |
|
| 13 |
override_dh_clean: |
| 14 |
dh_clean |
| 15 |
rm -rf html .mypy_cache .pytest_cache |
| 16 |
|
| 17 |
override_dh_auto_build: |
| 18 |
dh_auto_build |
| 19 |
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) |
| 20 |
PYTHONPATH=. mkdocs build -v --clean --site-dir build/html |
| 21 |
rm -f html/requirements.* build/html/sitemap.xml.gz |
| 22 |
endif |
| 23 |
|
| 24 |
override_dh_mkdocs: |
| 25 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 26 |
dh_mkdocs |
| 27 |
endif |