File: rules

package info (click to toggle)
python-django-ordered-model 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 208 kB
  • ctags: 207
  • sloc: python: 916; makefile: 11
file content (19 lines) | stat: -rwxr-xr-x 561 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=django-ordered-model

%:
	dh $@ --with python2,python3 --buildsystem=pybuild

override_dh_auto_build:
	set -e; \
	for loc in ordered_model/locale/*; do \
		python setup.py compile_catalog --directory ordered_model/locale/ --locale $$(basename $$loc) --domain django; \
	done
	dh_auto_build

override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="{interpreter} /usr/bin/django-admin test --pythonpath=. --settings=ordered_model.tests.settings"