| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=flufl.i18n |
| 4 |
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/flufl/i18n/README.rst' \ |
| 5 |
'{destdir}/{install_dir}/flufl/i18n/NEWS.rst' \ |
| 6 |
'{destdir}/{install_dir}/flufl/i18n/docs' |
| 7 |
DEFAULT_PYVER=$(shell py3versions -d -v) |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 11 |
|
| 12 |
execute_after_dh_auto_build: |
| 13 |
# Run Sphinx to build HTML documentation |
| 14 |
PYTHONPATH=.pybuild/cpython3_${DEFAULT_PYVER}_flufl.i18n/build/ sphinx-build -b html docs build/sphinx/html |
| 15 |
|
| 16 |
execute_after_dh_auto_install: |
| 17 |
# Exclude coverage.xml from installing |
| 18 |
rm -f debian/python3-flufl.i18n/usr/lib/python3*/dist-packages/coverage.xml |