File: rules

package info (click to toggle)
wtforms 2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,036 kB
  • ctags: 1,374
  • sloc: python: 5,268; makefile: 69
file content (21 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
SPHINXOPTS := -D today=\"$(BUILD_DATE)\"

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

override_dh_auto_test:
	python-coverage run tests/runtests.py

override_dh_auto_build:
	dh_auto_build
	rm docs/_templates/layout.html
	cd docs && make html SPHINXOPTS="$(SPHINXOPTS)"

override_dh_auto_install:
	dh_auto_install
	chmod 644 debian/*/usr/lib/python*/dist-packages/wtforms/locale/*/LC_MESSAGES/wtforms.mo