File: rules

package info (click to toggle)
python-aiosmtpd 1.4.3-1.1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,060 kB
  • sloc: python: 7,850; makefile: 158; sh: 5
file content (24 lines) | stat: -rwxr-xr-x 830 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
#!/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=aiosmtpd

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

override_dh_auto_install:
	dh_auto_install
	find debian/python3-aiosmtpd/usr/share/doc/python3-aiosmtpd -maxdepth 2 -type d -name "__pycache__" -exec rm -rf {} \;
	find debian/python3-aiosmtpd/ -name ".gitignore" -delete

override_dh_installdocs:
	PYTHONPATH=. python3 -m sphinx -N -q -E -b html aiosmtpd/docs debian/compiled_doc/html
	PYTHONPATH=. python3 -m sphinx -N -q -E -b man aiosmtpd/docs debian/compiled_doc/manpage
	dh_installdocs

override_dh_python3:
	dh_python3
	rm -rf debian/python3-aiosmtpd/usr/lib/python3/dist-packages/aiosmtpd/docs