File: rules

package info (click to toggle)
django-modeltranslation 0.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 648 kB
  • sloc: python: 4,580; makefile: 136
file content (17 lines) | stat: -rwxr-xr-x 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export PYBUILD_NAME=django-modeltranslation

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. sphinx-build -b html -N docs/modeltranslation build/html

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	for python in $(shell pyversions -s; py3versions -s); do \
	    $$python ./runtests.py; \
	done
endif