File: rules

package info (click to toggle)
django-ninja 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 11,280 kB
  • sloc: python: 15,956; javascript: 1,689; makefile: 39; sh: 25
file content (17 lines) | stat: -rwxr-xr-x 645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
export PYBUILD_NAME = django-ninja
export PYBUILD_BEFORE_TEST = ln -sf $(CURDIR)/docs {build_dir}/docs
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/docs'

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build-indep:
	dh_auto_build
	PYTHONPATH=$(CURDIR) mkdocs build --config-file docs/mkdocs.yml --site-dir $(CURDIR)/html

override_dh_installdocs:
	dh_installdocs -ppython3-django-ninja
	dh_installdocs --doc-main-package=python3-django-ninja -ppython-django-ninja-doc
	find debian/python-django-ninja-doc -name "*.pyc" -delete
	find debian/python-django-ninja-doc -name "__pycache__" -delete