idella4 14/03/23 13:17:29 Modified: doit-0.23.0-r1.ebuild ChangeLog Log: Correct deps, set test phase pypy capable and adjust for failures under pypy & py2.6, all wrt to the Bug #503616. Thx to Chicago for test support in irc. New release due in coming days set to fix most failed tests (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Revision Changes Path 1.2 dev-python/doit/doit-0.23.0-r1.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/doit/doit-0.23.0-r1.ebuild?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/doit/doit-0.23.0-r1.ebuild?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/doit/doit-0.23.0-r1.ebuild?r1=1.1&r2=1.2 Index: doit-0.23.0-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/doit/doit-0.23.0-r1.ebuild,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- doit-0.23.0-r1.ebuild 21 Mar 2014 07:00:31 -0000 1.1 +++ doit-0.23.0-r1.ebuild 23 Mar 2014 13:17:29 -0000 1.2 @@ -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/doit/doit-0.23.0-r1.ebuild,v 1.1 2014/03/21 07:00:31 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/doit/doit-0.23.0-r1.ebuild,v 1.2 2014/03/23 13:17:29 idella4 Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 ) @@ -15,9 +15,13 @@ KEYWORDS="~amd64" IUSE="test" -DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )" RDEPEND="dev-python/pyinotify[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}]" +DEPEND="test? ( ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] )" +# Required for test phase +DISTUTILS_IN_SOURCE_BUILD=1 DOCS=( AUTHORS CHANGES README TODO.txt dev_requirements.txt ) python_prepare_all() { @@ -36,11 +40,19 @@ python_test() { # Testsuite is designed to be run by py.test, called by runtests.py - if [[ "${EPYTHON}" == 'pypy-c2.0' ]]; then - einfo "some tests are not supported by pypy" - else - "${PYTHON}" runtests.py + # https://bitbucket.org/schettino72/doit/issue/78/tests-that-fail-under-pypy + if [[ "${EPYTHON}" == pypy-c2.0 ]]; then + sed -e 's:test_corrupted_file:_&:' \ + -e 's:test_corrupted_file_unrecognized_excep_pdep:_&:' \ + -i tests/test_dependency.py || die + elif [[ "${EPYTHON}" == python2.6 ]]; then + rm -f tests/test___main__.py || die + sed -e 's:test_invalid_param_stdout:_&:' \ + -i tests/test_action.py || die + sed -e 's:test_run_wait:_&:' \ + -i tests/test_cmd_auto.py || die fi + "${PYTHON}" runtests.py } src_install() { 1.8 dev-python/doit/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/doit/ChangeLog?rev=1.8&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/doit/ChangeLog?rev=1.8&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/doit/ChangeLog?r1=1.7&r2=1.8 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/doit/ChangeLog,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ChangeLog 21 Mar 2014 07:00:31 -0000 1.7 +++ ChangeLog 23 Mar 2014 13:17:29 -0000 1.8 @@ -1,6 +1,11 @@ # ChangeLog for dev-python/doit # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/doit/ChangeLog,v 1.7 2014/03/21 07:00:31 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/doit/ChangeLog,v 1.8 2014/03/23 13:17:29 idella4 Exp $ + + 23 Mar 2014; Ian Delaney <[email protected]> doit-0.23.0-r1.ebuild: + Correct deps, set test phase pypy capable and adjust for failures under pypy & + py2.6, all wrt to the Bug #503616. Thx to Chicago for test support in irc. + New release due in coming days set to fix most failed tests *doit-0.23.0-r1 (21 Mar 2014)
