| 1 |
|
| 2 |
export PYBUILD_NAME = django-ninja |
| 3 |
export PYBUILD_BEFORE_TEST = ln -sf $(CURDIR)/docs {build_dir}/docs |
| 4 |
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/docs' |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --with python3 --buildsystem=pybuild |
| 8 |
|
| 9 |
override_dh_auto_build-indep: |
| 10 |
dh_auto_build |
| 11 |
PYTHONPATH=$(CURDIR) mkdocs build --config-file docs/mkdocs.yml --site-dir $(CURDIR)/html |
| 12 |
|
| 13 |
override_dh_installdocs: |
| 14 |
dh_installdocs -ppython3-django-ninja |
| 15 |
dh_installdocs --doc-main-package=python3-django-ninja -ppython-django-ninja-doc |
| 16 |
find debian/python-django-ninja-doc -name "*.pyc" -delete |
| 17 |
find debian/python-django-ninja-doc -name "__pycache__" -delete |
| 18 |
touch -d@$(SOURCE_DATE_EPOCH) debian/python-django-ninja-doc/usr/share/doc/python3-django-ninja/docs/src |