File: rules

package info (click to toggle)
webtest 2.0.24-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 540 kB
  • ctags: 628
  • sloc: python: 4,437; makefile: 137
file content (20 lines) | stat: -rwxr-xr-x 760 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /usr/bin/make -f

export PYBUILD_NAME=webtest
# disable tests, some dependencies are not packaged, f.e. wsgiproxy
export PYBUILD_DISABLE=test

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

override_dh_auto_install:
	dh_auto_install --buildsystem=pybuild
	mkdir -p docs/_static # Sphinx needs it
	dh_installdirs
	http_proxy='http://127.0.0.1:9/' PYTHONPATH=. sphinx-build -N -q -E -b html docs/ debian/python-webtest-doc/usr/share/doc/python-webtest-doc/
	# it's not an extra license file
	echo "python-webtest-doc: extra-license-file usr/share/doc/python-webtest-doc/_sources/license.txt" \
		>> debian/python-webtest-doc/usr/share/lintian/overrides/python-webtest-doc

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.rst