File: rules

package info (click to toggle)
kitchen 1.2.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,024 kB
  • sloc: python: 10,669; makefile: 16; sh: 4
file content (27 lines) | stat: -rwxr-xr-x 1,114 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
27
#!/usr/bin/make -f

export PYBUILD_NAME = kitchen
export PYBUILD_BEFORE_TEST_python2 = cp -a {dir}/kitchen2/tests {build_dir}/tests
export PYBUILD_BEFORE_TEST_python3 = cp -a {dir}/kitchen3/tests {build_dir}/tests
export PYBUILD_AFTER_TEST = rm -rf {build_dir}/tests
# Necessary because of the i18n tests
export LANGUAGE =
export PYTHONUTF8 = 0

# Temporary measure until upstream updates the unicode table according
# to Python 3.6.  See #868680.
export PYBUILD_TEST_ARGS_python3 = --exclude=test_text_display.py

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

override_dh_auto_build:
	dh_auto_build
# Docs from kitchen2 and kitchen3 are basically the same, so we just
# use the ones from kitchen3.
	PYTHONPATH=$(CURDIR)/kitchen3/ http_proxy='127.0.0.1:9' \
		python3 -m sphinx -N -bhtml kitchen3/docs/ kitchen3/docs/_build/html
	PYTHONPATH=$(CURDIR)/kitchen3/ http_proxy='127.0.0.1:9' \
		python3 -m sphinx -N -bman kitchen3/docs/ kitchen3/docs/_build/man
# test-kitchen also installs a manpage named kitchen.1.
	mv kitchen3/docs/_build/man/kitchen.1 kitchen3/docs/_build/man/python-kitchen.1