-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
inherit distutils-r1
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
-
IUSE="doc test"
-RDEPEND=">=dev-python/requests-0.13[${PYTHON_USEDEP}]
- >=dev-python/sphinx-1.1[${PYTHON_USEDEP}]"
+RDEPEND="
+ >=dev-python/requests-0.13[${PYTHON_USEDEP}]
+ >=dev-python/sphinx-1.1[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
-e "s:^ 'sphinx':#:" \
-i doc/conf.py || die
fi
+
+ distutils-r1_python_prepare_all
}
python_compile_all() {
- use doc && emake -C doc html
+ if use doc; then
+ emake -C doc html
+ HTML_DOCS=( doc/_build/html/. )
+ fi
}
python_test() {
py.test || die
}
-
-python_install_all() {
- use doc && local HTML_DOCS=( doc/_build/html )
- distutils-r1_python_install_all
-}