-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
-PYTHON_COMPAT=( python2_7 pypy )
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
inherit distutils-r1
IUSE="test"
RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
- dev-python/twill[${PYTHON_USEDEP}]"
+ $(python_gen_cond_dep 'dev-python/twill[${PYTHON_USEDEP}]' python2_7)"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
+ ${RDEPEND}
dev-python/blinker[${PYTHON_USEDEP}]
- dev-python/nose[${PYTHON_USEDEP}]
)"
S="${WORKDIR}/${MY_P}"
PATCHES=( "${FILESDIR}"/${PV}-test-fix.patch )
python_test() {
- # test phase appears to run only py2.7 but if it passes for py2.7 is passes for pypy
- nosetests || die "Testing failed with ${EPYTHON}"
+ esetup.py test
}