File: rules

package info (click to toggle)
kitchen 1.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,020 kB
  • sloc: python: 10,060; makefile: 18; sh: 4
file content (30 lines) | stat: -rwxr-xr-x 1,159 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
28
29
30
#!/usr/bin/make -f

export PYBUILD_NAME = kitchen
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 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

override_dh_installdocs:
	dh_installdocs -ppython-kitchen-doc --doc-main-package=python3-kitchen
	dh_installdocs --remaining-packages