dev-python/flask-testing: add Python 3 support, fix tests and dependencies
authorLouis Sautier <sautier.louis@gmail.com>
Sun, 17 Apr 2016 18:29:36 +0000 (20:29 +0200)
committerIan Delaney <idella4@gentoo.org>
Mon, 18 Apr 2016 09:06:06 +0000 (17:06 +0800)
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/1293

Signed-off-by: Ian Delaney <idella4@gentoo.org>
dev-python/flask-testing/flask-testing-0.4.2.ebuild
dev-python/flask-testing/metadata.xml

index c9c8d527903105d9aa1273900a5e69d3fa2b47a3..25849795db3627c57939c320c0ad833bcbd4f847 100644 (file)
@@ -1,9 +1,9 @@
-# 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
 
@@ -20,18 +20,17 @@ KEYWORDS="amd64 x86"
 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
 }
index d2f55a2981448769b6c2cde15129016f2de315bb..186145be8e10fa713aae80f20cfba49d8e7b873c 100644 (file)
@@ -7,5 +7,7 @@
        </maintainer>
        <upstream>
                <remote-id type="pypi">Flask-Testing</remote-id>
+               <remote-id type="github">jarus/flask-testing</remote-id>
+               <bugs-to>https://github.com/jarus/flask-testing/issues</bugs-to>
        </upstream>
 </pkgmetadata>