File: rules

package info (click to toggle)
django-tables 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,640 kB
  • sloc: python: 6,989; makefile: 129; sh: 74
file content (28 lines) | stat: -rwxr-xr-x 849 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
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=django-tables2
export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/lib/python*/dist-packages/django_tables2/static/django_tables2

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

.PHONY: override_dh_auto_build
override_dh_auto_build:
	PYTHONPATH=. python3 -m sphinx -b html -d docs/.build/.doctrees -N docs docs/.build/html
	dh_auto_build

override_dh_installexamples:
	dh_installexamples -A -X__pycache__

.PHONY: override_dh_auto_clean
override_dh_auto_clean:
	dh_auto_clean
	${RM} -r .cache django_tables2.egg-info
	$(RM) -r docs/.build
	# docs/conf.py generates a symlink of the CHANGELOG to docs/pages/CHANGELOG
	$(RM) -r docs/pages/CHANGELOG

.PHONY: override_dh_auto_test
override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args="{interpreter} -Wd manage.py test"