| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=django-axes |
| 4 |
export DH_VERBOSE=1 |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --buildsystem=pybuild |
| 8 |
|
| 9 |
execute_after_dh_auto_clean: |
| 10 |
rm -rf debian/html |
| 11 |
|
| 12 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) |
| 13 |
execute_after_dh_auto_build: |
| 14 |
PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 /usr/bin/sphinx-build -N -bhtml docs debian/html |
| 15 |
endif |
| 16 |
|
| 17 |
override_dh_installchangelogs: |
| 18 |
dh_installchangelogs CHANGES.rst |
| 19 |
|
| 20 |
override_dh_auto_test: |
| 21 |
PYBUILD_SYSTEM=custom \ |
| 22 |
PYBUILD_TEST_ARGS="pytest" \ |
| 23 |
PYTHONPATH=. dh_auto_test |