idella4 14/05/25 03:28:41 Modified: wtf-peewee-0.2.1.ebuild ChangeLog Log: unrestrict & upgrade test phase, add IUSE examples (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Revision Changes Path 1.2 dev-python/wtf-peewee/wtf-peewee-0.2.1.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wtf-peewee/wtf-peewee-0.2.1.ebuild?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wtf-peewee/wtf-peewee-0.2.1.ebuild?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wtf-peewee/wtf-peewee-0.2.1.ebuild?r1=1.1&r2=1.2 Index: wtf-peewee-0.2.1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/wtf-peewee/wtf-peewee-0.2.1.ebuild,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- wtf-peewee-0.2.1.ebuild 20 May 2014 08:12:48 -0000 1.1 +++ wtf-peewee-0.2.1.ebuild 25 May 2014 03:28:41 -0000 1.2 @@ -1,28 +1,38 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/wtf-peewee/wtf-peewee-0.2.1.ebuild,v 1.1 2014/05/20 08:12:48 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/wtf-peewee/wtf-peewee-0.2.1.ebuild,v 1.2 2014/05/25 03:28:41 idella4 Exp $ EAPI=5 PYTHON_COMPAT=( python2_7 ) inherit distutils-r1 -RESTRICT="test" # broken - DESCRIPTION="Small python ORM" HOMEPAGE="https://github.com/coleifer/peewee/" SRC_URI="https://github.com/coleifer/${PN}/archive/${PV}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" +IUSE="examples test" + +RDEPEND="dev-python/peewee[${PYTHON_USEDEP}] + dev-python/wtforms[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( "${RDEPEND}" )" + +python_prepare_all() { + # https://github.com/coleifer/peewee/issues/361 + sed -e s':test_choices:_&:' \ + -e s':test_null_form_saving:_&:' \ + -i "${PN/\-/}"/tests.py || die + distutils-r1_python_prepare_all +} -RDEPEND="" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/peewee[${PYTHON_USEDEP}] - dev-python/wtforms[${PYTHON_USEDEP}] - " python_test() { - nosetests || die "Testing failed with ${EPYTHON}" + "${PYTHON}" ./runtests.py || die "Testing failed with ${EPYTHON}" +} + +python_install_all() { + use examples && local EXAMPLES=( example/. ) + distutils-r1_python_install_all } 1.6 dev-python/wtf-peewee/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wtf-peewee/ChangeLog?rev=1.6&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wtf-peewee/ChangeLog?rev=1.6&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/wtf-peewee/ChangeLog?r1=1.5&r2=1.6 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/wtf-peewee/ChangeLog,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ChangeLog 20 May 2014 08:12:48 -0000 1.5 +++ ChangeLog 25 May 2014 03:28:41 -0000 1.6 @@ -1,6 +1,9 @@ # ChangeLog for dev-python/wtf-peewee # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/wtf-peewee/ChangeLog,v 1.5 2014/05/20 08:12:48 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/wtf-peewee/ChangeLog,v 1.6 2014/05/25 03:28:41 idella4 Exp $ + + 25 May 2014; Ian Delaney <idel...@gentoo.org> wtf-peewee-0.2.1.ebuild: + unrestrict & upgrade test phase, add IUSE examples *wtf-peewee-0.2.1 (20 May 2014)