| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
UPSTREAM_GIT := https://github.com/lpomfrey/django-debreach.git |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
export PYBUILD_NAME=django-debreach |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --buildsystem=pybuild --with python3,sphinxdoc |
| 10 |
|
| 11 |
override_dh_sphinxdoc: |
| 12 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 13 |
PYTHONPATH=. python3 -m sphinx -b html docs debian/python-django-debreach-doc/usr/share/doc/python-django-debreach-doc/html |
| 14 |
dh_sphinxdoc |
| 15 |
endif |
| 16 |
|
| 17 |
override_dh_auto_test: |
| 18 |
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) |
| 19 |
set -e ; for pyvers in $(PYTHON3S); do \ |
| 20 |
python$$pyvers runtests.py ; \ |
| 21 |
done |
| 22 |
endif |