floppym 15/01/14 01:08:03 Modified: APScheduler-3.0.1.ebuild ChangeLog Log: Add a test phase. (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Revision Changes Path 1.2 dev-python/APScheduler/APScheduler-3.0.1.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/APScheduler/APScheduler-3.0.1.ebuild?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/APScheduler/APScheduler-3.0.1.ebuild?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/APScheduler/APScheduler-3.0.1.ebuild?r1=1.1&r2=1.2 Index: APScheduler-3.0.1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/APScheduler/APScheduler-3.0.1.ebuild,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- APScheduler-3.0.1.ebuild 3 Jan 2015 06:27:25 -0000 1.1 +++ APScheduler-3.0.1.ebuild 14 Jan 2015 01:08:03 -0000 1.2 @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/APScheduler/APScheduler-3.0.1.ebuild,v 1.1 2015/01/03 06:27:25 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/APScheduler/APScheduler-3.0.1.ebuild,v 1.2 2015/01/14 01:08:03 floppym Exp $ EAPI=5 PYTHON_COMPAT=( python{2_7,3_3,3_4} ) @@ -14,11 +14,18 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" RDEPEND="dev-python/pytz[${PYTHON_USEDEP}] dev-python/setuptools[${PYTHON_USEDEP}] >=dev-python/six-1.4.0[${PYTHON_USEDEP}] dev-python/tzlocal[${PYTHON_USEDEP}] virtual/python-futures[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_test() { + # Unsetting PYTHONPATH prevents a bunch of errors. I have no idea why. + unset PYTHONPATH + py.test || die "Testing failed with ${EPYTHON}" +} 1.2 dev-python/APScheduler/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/APScheduler/ChangeLog?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/APScheduler/ChangeLog?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/APScheduler/ChangeLog?r1=1.1&r2=1.2 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/APScheduler/ChangeLog,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ChangeLog 3 Jan 2015 06:27:25 -0000 1.1 +++ ChangeLog 14 Jan 2015 01:08:03 -0000 1.2 @@ -1,6 +1,9 @@ # ChangeLog for dev-python/APScheduler # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/APScheduler/ChangeLog,v 1.1 2015/01/03 06:27:25 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/APScheduler/ChangeLog,v 1.2 2015/01/14 01:08:03 floppym Exp $ + + 14 Jan 2015; Mike Gilbert <flop...@gentoo.org> APScheduler-3.0.1.ebuild: + Add a test phase. *APScheduler-3.0.1 (03 Jan 2015)