diff options
author | 2014-03-19 03:08:36 +0000 | |
---|---|---|
committer | 2014-03-19 03:08:36 +0000 | |
commit | ce4da9e872f18668bab501d98cae8a07cca0b88a (patch) | |
tree | b0b1bdf2e3ebb1719cea6258c43ea21848673acf /dev-python/itsdangerous/itsdangerous-0.23.ebuild | |
parent | Adds gtest to saved External directories. (diff) | |
download | gentoo-2-ce4da9e872f18668bab501d98cae8a07cca0b88a.tar.gz gentoo-2-ce4da9e872f18668bab501d98cae8a07cca0b88a.tar.bz2 gentoo-2-ce4da9e872f18668bab501d98cae8a07cca0b88a.zip |
fix test phase; rm un-needed dep nose, IUSE test, fixes Bug #503744 by an eroen
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/itsdangerous/itsdangerous-0.23.ebuild')
-rw-r--r-- | dev-python/itsdangerous/itsdangerous-0.23.ebuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/dev-python/itsdangerous/itsdangerous-0.23.ebuild b/dev-python/itsdangerous/itsdangerous-0.23.ebuild index 634437f9a866..f9984b457e10 100644 --- a/dev-python/itsdangerous/itsdangerous-0.23.ebuild +++ b/dev-python/itsdangerous/itsdangerous-0.23.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/itsdangerous/itsdangerous-0.23.ebuild,v 1.3 2014/02/11 06:26:57 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/itsdangerous/itsdangerous-0.23.ebuild,v 1.4 2014/03/19 03:08:36 idella4 Exp $ EAPI="5" PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 ) @@ -14,11 +14,15 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="test" +IUSE="" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/nose[${PYTHON_USEDEP}] )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +# Required for running tests.py +DISTUTILS_IN_SOURCE_BUILD=1 python_test() { - nosetests || die "Testing fail with ${EPYTHON}" + if python_is_python3; then + 2to3 -f unicode -nw --no-diffs tests.py + fi + "${PYTHON}" tests.py || die "Tests failed under ${EPYTHON}" } |