File: rules

package info (click to toggle)
python-mockito 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 528 kB
  • sloc: python: 4,102; makefile: 206
file content (22 lines) | stat: -rwxr-xr-x 645 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
#!/usr/bin/make -f
export PYBUILD_NAME = mockito

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

override_dh_auto_build:
	export http_proxy=127.0.0.1:9
	export https_proxy=127.0.0.1:9

	# Remove the travis-ci image, which raises a lintian
	# "privacy-breach-generic" warning.
	sed -i -e '/travis/d' README.rst
	dh_auto_build -O--buildsystem=pybuild

	# Generate the HTML and Info documentation.
	sed -i -e '/travis/d' docs/index.rst
	$(MAKE) -C docs html info PYTHONPATH=..

override_dh_installdocs:
	dh_installdocs -p python-mockito-doc --doc-main-package=python3-mockito
	dh_installdocs -O--buildsystem=pybuild --remaining-packages