1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_5 )
12 DESCRIPTION="Freezes a Flask application into a set of static files"
13 HOMEPAGE="https://github.com/SimonSapin/Frozen-Flask https://pypi.org/project/Frozen-Flask/"
14 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
20 RESTRICT="!test? ( test )"
22 RDEPEND=">=dev-python/flask-0.7[${PYTHON_USEDEP}]"
24 dev-python/setuptools[${PYTHON_USEDEP}]
25 test? ( dev-python/nose[${PYTHON_USEDEP}] )"
27 S="${WORKDIR}/${MY_P}"
29 python_compile_all() {
31 sed -e 's:^intersphinx_mapping:#intersphinx_mapping:' -i docs/conf.py || die
32 mkdir docs/_build || die
33 sphinx-build -c docs docs docs/_build || die
38 nosetests || die Tests failed under $"{EPYTHON}"
41 python_install_all() {
42 use doc && HTML_DOCS=( "${S}"/docs/_build/. )
43 distutils-r1_python_install_all