File: rules

package info (click to toggle)
aiosmtplib 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 484 kB
  • sloc: python: 5,620; makefile: 21; sh: 6
file content (19 lines) | stat: -rwxr-xr-x 712 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
export DH_VERBOSE = 1

export PYBUILD_NAME=aiosmtplib
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/docs' && rm -rf '{destdir}/{install_dir}/.hypothesis'

# main packaging script based on dh7 syntax
%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_installdocs:
	PYTHONPATH=. python3 -m sphinx -N -q -E -b html docs debian/_docs_build/html
	cp -a docs debian/_docs_build/rst
	dh_installdocs

execute_after_dh_compress:
	ln -sf ../../python3-aiosmtplib-doc/changelog.gz debian/python3-aiosmtplib-doc/usr/share/doc/python3-aiosmtplib/rst/changelog.rst.gz