File: rules

package info (click to toggle)
python-aio-pika 9.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,424 kB
  • sloc: python: 8,003; makefile: 37; xml: 1
file content (17 lines) | stat: -rwxr-xr-x 604 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export PYBUILD_NAME = aio-pika

include /usr/share/dpkg/pkg-info.mk

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

override_dh_auto_test:
	# don't run the tests, module aiomisc is required and it's not on Debian.

override_dh_auto_build:
	dh_auto_build
	# Insert $DEB_VERSION_UPSTREAM into Sphinx configuration, to mitigate "No package metadata was found" error during build. 
	sed -i "s/^__version__.*/__version__ = '$(DEB_VERSION_UPSTREAM)'/" docs/source/conf.py
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/source build/html # HTML generator