File: rules

package info (click to toggle)
python-transliterate 1.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 752 kB
  • sloc: python: 2,004; makefile: 223; sh: 36
file content (26 lines) | stat: -rwxr-xr-x 733 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
22
23
24
25
26
#!/usr/bin/make -f

export PYBUILD_NAME=transliterate
export PYTEST_ADDOPTS=--no-cov
export LC_ALL=C.UTF-8

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx docs docs/_build/html

override_dh_installdocs:
	dh_installdocs --doc-main-package=python3-transliterate -p python-transliterate-doc
	dh_installdocs -p python3-transliterate

override_dh_compress:
	dh_compress -X.js -X.html -X.txt

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(eval BUILD_DIR=$(shell pybuild --print '{build_dir}' --interpreter python3))
	cp runtests.py $(BUILD_DIR)
	cd $(BUILD_DIR); python3 runtests.py; rm runtests.py
endif