| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=cairocffi |
| 4 |
export PYBUILD_BEFORE_TEST=cp -R {dir}/cairocffi/ {build_dir} |
| 5 |
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*/__pycache__ && rm {build_dir}/cairocffi/test_*.py |
| 6 |
export PYBUILD_BEFORE_INSTALL=rm -rf {build_dir}/cairocffi/test_*.py |
| 7 |
|
| 8 |
# Skipping since there is no WM in CI |
| 9 |
export PYBUILD_TEST_ARGS=-k "not test_xcb_window" |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=pybuild |
| 13 |
|
| 14 |
override_dh_auto_build: |
| 15 |
dh_auto_build |
| 16 |
python3 -m sphinx -N -bhtml docs/ docs/_build/html |
| 17 |
PYTHONPATH=. sphinx-build -b html docs build/html |
| 18 |
|
| 19 |
override_dh_clean: |
| 20 |
dh_clean |
| 21 |
rm -rf docs/_build |
| 22 |
|
| 23 |
update_intersphinx_mapping: |
| 24 |
wget http://docs.python.org/dev/objects.inv -O debian/python.org_objects.inv |
| 25 |
wget http://cairographics.org/documentation/pycairo/2/objects.inv -O debian/cairographics.org_pycairo2_objects.inv |
| 26 |
wget http://cffi.readthedocs.io/en/latest/objects.inv -O debian/cffi.readthedocs.io_cffi_objects.inv |
| 27 |
|
| 28 |
override_dh_compress: |
| 29 |
dh_compress -X changelog.html |
| 30 |
|
| 31 |
override_dh_installdocs: |
| 32 |
dh_installdocs |
| 33 |
cp -r build/html/* debian/python-cairocffi-doc/usr/share/doc/python-cairocffi-doc/html/ |