| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
export PYBUILD_NAME=django-markupfield |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --buildsystem pybuild --without=single-binary |
| 10 |
|
| 11 |
override_dh_auto_build: |
| 12 |
set -e; \ |
| 13 |
for loc in markupfield/locale/*; do \ |
| 14 |
python3 setup.py compile_catalog --directory markupfield/locale/ --locale $$(basename $$loc) --domain django; \ |
| 15 |
done |
| 16 |
dh_auto_build |
| 17 |
|
| 18 |
override_dh_auto_test: |
| 19 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 20 |
set -e; \ |
| 21 |
for python in $(shell py3versions -r); do \ |
| 22 |
$$python $$(which django-admin) test --settings=markupfield.tests.settings --pythonpath=. ; \ |
| 23 |
done |
| 24 |
endif |