| 1 | #!/usr/bin/make -f |
| 2 | export DH_VERBOSE = 1 |
| 3 | |
| 4 | export PYBUILD_NAME=aiosmtplib |
| 5 | export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/docs' && rm -rf '{destdir}/{install_dir}/.hypothesis' |
| 6 | |
| 7 | %: |
| 8 | dh $@ --with sphinxdoc --buildsystem=pybuild |
| 9 | |
| 10 | execute_before_dh_installdocs: |
| 11 | PYTHONPATH=. python3 -m sphinx -N -q -E -b html docs debian/_docs_build/html |
| 12 | cp -a docs debian/_docs_build/rst |
| 13 | |
| 14 | execute_after_dh_compress: |
| 15 | ln -sf ../../python3-aiosmtplib-doc/changelog.gz debian/python3-aiosmtplib-doc/usr/share/doc/python3-aiosmtplib/rst/changelog.rst.gz |