File: rules

package info (click to toggle)
kitchen 1.2.6-8
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,280 kB
  • sloc: python: 10,749; makefile: 22; sh: 4
file content (31 lines) | stat: -rwxr-xr-x 1,037 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
31
#!/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
export PYBUILD_AFTER_BUILD = \
	PYTHONPATH={build_dir} \
	http_proxy='127.0.0.1:9' \
		{interpreter} -m sphinx -N -bhtml \
		kitchen3/docs/ kitchen3/docs/_build/html ; \
	PYTHONPATH={build_dir} \
	http_proxy='127.0.0.1:9' \
		{interpreter} -m sphinx -N -bman \
		kitchen3/docs/ kitchen3/docs/_build/man ; \
	mv kitchen3/docs/_build/man/kitchen.1 kitchen3/docs/_build/man/python-kitchen.1
# 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= -k 'not test_internal_generate_combining_table'

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

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

override_dh_auto_test: