| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
export PYBUILD_NAME = digitalocean |
| 8 |
export PYBUILD_TEST_PYTEST = 1 |
| 9 |
export PYBUILD_BEFORE_TEST=cp -r {dir}/digitalocean/tests {build_dir} |
| 10 |
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/digitalocean/tests |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ --buildsystem=pybuild |
| 14 |
|
| 15 |
override_dh_auto_clean: |
| 16 |
dh_auto_clean |
| 17 |
rm -rf build |
| 18 |
rm -rf *.egg-info |
| 19 |
|
| 20 |
override_dh_auto_build: export http_proxy=127.0.0.1:9 |
| 21 |
override_dh_auto_build: export https_proxy=127.0.0.1:9 |
| 22 |
override_dh_auto_build: |
| 23 |
dh_auto_build |
| 24 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 25 |
PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ build/html |
| 26 |
endif |