File: rules

package info (click to toggle)
python-django-ordered-model 3.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 296 kB
  • sloc: python: 1,372; makefile: 11; sh: 4
file content (16 lines) | stat: -rwxr-xr-x 476 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export PYBUILD_NAME=django-ordered-model

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

override_dh_auto_build:
	set -e; \
	for loc in ordered_model/locale/*; do \
		python3 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=tests.settings"