[py3] Use "utf-8" as input encoding for docutils in rest extension
Docutils says that "unicode" is an unknown encoding on Python3. Not sure
where "unicode" as an encoding comes (it's there since showtime) but
"utf-8" seems more appropriate.
From now on, rendering of CubicWeb's rst directive (e.g. ..winclude)
works on Python 3. Accordingly, we extend wdoc's test to demonstrate
this. For this we need to install docutils in tox's web environment.
#!/usr/bin/make -f# Sample debian/rules that uses debhelper.# GNU copyright 1997 to 1999 by Joey Hess.# Uncomment this to turn on verbose mode.# export DH_VERBOSE=1export PYBUILD_NAME=cubicwebexport PYBUILD_DISABLE_python2=test%: dh $@ --with python2,sphinxdoc --buildsystem=pybuildoverride_dh_auto_build: export http_proxy=127.0.0.1:9override_dh_auto_build: export https_proxy=127.0.0.1:9override_dh_auto_build: dh_auto_buildifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) PYTHONPATH=. sphinx-build -N -bhtml doc/ debian/cubicweb-doc/htmlendifoverride_dh_auto_install: dh_auto_install mv debian/python-${PYBUILD_NAME}/usr/bin/cubicweb-ctl \ debian/cubicweb-ctl/usr/bin/cubicweb-ctloverride_dh_installchangelogs: dh_installchangelogs -Xdoc/changes