| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
export PYBUILD_NAME=django-contrib-comments |
| 7 |
export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir} |
| 8 |
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 12 |
|
| 13 |
execute_before_dh_auto_build: |
| 14 |
set -e; \ |
| 15 |
for loc in django_comments/locale/*; do \ |
| 16 |
python3 setup.py compile_catalog --directory django_comments/locale/ --locale $$(basename $$loc) --domain django; \ |
| 17 |
done |
| 18 |
|
| 19 |
override_dh_sphinxdoc: |
| 20 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 21 |
PYTHONPATH=. python3 -m sphinx -b html -d docs/.build/.doctrees -N docs $(CURDIR)/debian/python-django-contrib-comments-doc/usr/share/doc/python-django-contrib-comments-doc/html |
| 22 |
dh_sphinxdoc |
| 23 |
rm -rf docs/.build |
| 24 |
endif |
| 25 |
|
| 26 |
override_dh_auto_test: |
| 27 |
dh_auto_test -- --system=custom --test-args="cd {build_dir}; {interpreter} tests/runtests.py" |