File: rules

package info (click to toggle)
aiohttp-wsgi 0.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 236 kB
  • sloc: python: 735; makefile: 19; sh: 8
file content (26 lines) | stat: -rwxr-xr-x 660 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
25
26
#!/usr/bin/make -f

export PYBUILD_NAME=aiohttp-wsgi

%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx \
		   -N -b html \
		   docs/ \
		   $(CURDIR)/debian/python3-aiohttp-wsgi/usr/share/doc/python3-aiohttp-wsgi/html
	dh_sphinxdoc
endif

override_dh_auto_install:
	dh_auto_install
	dh_movefiles \
		--package=aiohttp-wsgi-serve \
		--sourcedir=debian/python3-aiohttp-wsgi \
		usr/bin

override_dh_compress:
	# changelog.html is below 20KB and we want users to be able to browse all docs
	dh_compress -X changelog.html