File: rules

package info (click to toggle)
cairocffi 1.7.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 752 kB
  • sloc: python: 3,020; makefile: 22
file content (32 lines) | stat: -rwxr-xr-x 1,059 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
32
#!/usr/bin/make -f

export PYBUILD_NAME=cairocffi
export PYBUILD_BEFORE_TEST=cp -R {dir}/cairocffi/ {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*/__pycache__ && rm {build_dir}/cairocffi/test_*.py

# Skipping since there is no WM in CI
export PYBUILD_TEST_ARGS=-k "not test_xcb_window"

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

override_dh_auto_build:
	dh_auto_build
	python3 -m sphinx -N -bhtml docs/ docs/_build/html
	PYTHONPATH=. sphinx-build -b html docs build/html

override_dh_clean:
	dh_clean
	rm -rf docs/_build

update_intersphinx_mapping:
	wget http://docs.python.org/dev/objects.inv -O debian/python.org_objects.inv
	wget http://cairographics.org/documentation/pycairo/2/objects.inv -O debian/cairographics.org_pycairo2_objects.inv
	wget http://cffi.readthedocs.io/en/latest/objects.inv -O debian/cffi.readthedocs.io_cffi_objects.inv

override_dh_compress:
	dh_compress -X changelog.html

override_dh_installdocs:
	dh_installdocs
	cp -r build/html/* debian/python-cairocffi-doc/usr/share/doc/python-cairocffi-doc/html/