File: rules

package info (click to toggle)
python-webob 1%3A1.8.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,664 kB
  • sloc: python: 21,344; makefile: 171
file content (24 lines) | stat: -rwxr-xr-x 685 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

export PYBUILD_NAME=webob
#export PYBUILD_VERBOSE=1
#export DH_VERBOSE=1

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

override_dh_auto_test:
	# enable network, tests.test_in_wsgiref.test_request_reading needs it
	set -e ; for vers in 2.7 `py3versions -vr` ; do \
		http_proxy='' PYTHONPATH=.:$(CURDIR)/src python$$vers -m pytest tests ; \
	done

override_dh_installchangelogs:
	dh_installchangelogs -k CHANGES.txt

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=.:$(CURDIR)/src python3 -m sphinx -N -q -E -b html docs/ \
		     debian/python-webob-doc/usr/share/doc/python-webob-doc/
	dh_sphinxdoc
endif