File: rules

package info (click to toggle)
drf-extensions 0.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,104 kB
  • sloc: python: 7,327; makefile: 14
file content (24 lines) | stat: -rwxr-xr-x 712 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=djangorestframework-extensions

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

override_dh_auto_build:
	dh_auto_build
	PYTHONIOENCODING=UTF-8 python3 docs/backdoc.py --source docs/index.md --title "Django Rest Framework extensions documentation" > docs/index.html

override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="PYTHONPATH='.:tests_app' {interpreter} /usr/bin/django-admin test --settings=settings tests_app"

override_dh_clean:
	rm -rf docs/.build
	dh_clean

override_dh_installchangelogs:
	awk '/^### Release notes$$/,0' < docs/index.md >CHANGELOG
	dh_installchangelogs -- CHANGELOG