| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME = opentracing |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=pybuild |
| 7 |
|
| 8 |
override_dh_auto_clean: |
| 9 |
dh_auto_clean -O--buildsystem=pybuild |
| 10 |
|
| 11 |
# Remove pytest leftovers. |
| 12 |
rm -rf .pytest_cache |
| 13 |
|
| 14 |
# Remove sphinx-generated files. |
| 15 |
rm -rf docs/_build |
| 16 |
|
| 17 |
# Remove generated coverage files. |
| 18 |
rm -f .coverage coverage.xml |
| 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 -O--buildsystem=pybuild |
| 24 |
|
| 25 |
# Generate the HTML and Info documentation. |
| 26 |
$(MAKE) -C docs html info PYTHONPATH=.. |
| 27 |
|
| 28 |
override_dh_installdocs: |
| 29 |
dh_installdocs -O--buildsystem=pybuild --doc-main-package=python3-opentracing --package=python-opentracing-doc |
| 30 |
dh_installdocs -O--buildsystem=pybuild --remaining-packages |