File: rules

package info (click to toggle)
django-modeltranslation 0.17.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 708 kB
  • sloc: python: 4,711; javascript: 429; makefile: 146
file content (17 lines) | stat: -rwxr-xr-x 503 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 python3,sphinxdoc --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -N docs/modeltranslation $(CURDIR)/debian/python-django-modeltranslation-doc/usr/share/doc/python-django-modeltranslation-doc/html
	dh_sphinxdoc
endif

override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
		PYBUILD_TEST_ARGS="{interpreter} ./runtests.py" \
		dh_auto_test