| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=djangorestframework-extensions |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --buildsystem=pybuild |
| 10 |
|
| 11 |
execute_after_dh_auto_build: |
| 12 |
PYTHONIOENCODING=UTF-8 python3 docs/backdoc.py --source docs/index.md --title "Django Rest Framework extensions documentation" > docs/index.html |
| 13 |
|
| 14 |
override_dh_auto_test: |
| 15 |
#dh_auto_test -- --system=custom --test-args="PYTHONPATH='.:tests_app' {interpreter} /usr/bin/django-admin test --settings=settings tests_app" |
| 16 |
|
| 17 |
execute_before_dh_clean: |
| 18 |
rm -rf docs/.build |
| 19 |
|
| 20 |
override_dh_installchangelogs: |
| 21 |
awk '/^### Release notes$$/,0' < docs/index.md >CHANGELOG |
| 22 |
dh_installchangelogs -- CHANGELOG |