File: rules

package info (click to toggle)
cairocffi 1.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: python: 3,021; makefile: 20
file content (29 lines) | stat: -rwxr-xr-x 866 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
#!/usr/bin/make -f

export PYBUILD_NAME=cairocffi

export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS=-k "not test_xcb.py"
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*/__pycache__

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

override_dh_auto_test:
	LC_ALL=C.UTF-8 xvfb-run -a --server-args="-screen 0 1024x768x24" dh_auto_test

override_dh_auto_build:
	dh_auto_build
	python3 -m sphinx -N -bhtml docs/ 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 -Xchangelog.html