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
|