From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A706313888F for ; Wed, 21 Oct 2015 13:42:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DC2021C055; Wed, 21 Oct 2015 13:41:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 935D421C05B for ; Wed, 21 Oct 2015 13:41:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AED18340942 for ; Wed, 21 Oct 2015 13:41:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A8C29154C for ; Wed, 21 Oct 2015 13:41:26 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1445434824.10df2a90238e0de37f1a7255d46cf0e0ff6b05b9.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pymongo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pymongo/pymongo-2.9.ebuild X-VCS-Directories: dev-python/pymongo/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 10df2a90238e0de37f1a7255d46cf0e0ff6b05b9 X-VCS-Branch: master Date: Wed, 21 Oct 2015 13:41:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 848b65df-05b7-4b6b-97ed-e9168fc5deb7 X-Archives-Hash: f9932d64c9e3b4ba86230c5cc2bbf591 commit: 10df2a90238e0de37f1a7255d46cf0e0ff6b05b9 Author: Justin Lecher gentoo org> AuthorDate: Wed Oct 21 06:12:52 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Oct 21 13:40:24 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10df2a90 dev-python/pymongo: Add python3.5 support and correct usage of distutils-r1.eclass * Add missing die * Add missing PYTHON_USEDEP * Only use python_test() Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher gentoo.org> dev-python/pymongo/pymongo-2.9.ebuild | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/dev-python/pymongo/pymongo-2.9.ebuild b/dev-python/pymongo/pymongo-2.9.ebuild index 9dd9181..e5c8c39 100644 --- a/dev-python/pymongo/pymongo-2.9.ebuild +++ b/dev-python/pymongo/pymongo-2.9.ebuild @@ -4,7 +4,7 @@ EAPI=5 -PYTHON_COMPAT=( python{2_7,3_4} pypy ) +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) inherit check-reqs distutils-r1 @@ -18,7 +18,7 @@ KEYWORDS="~amd64 ~hppa ~x86" IUSE="doc kerberos test" RDEPEND=" - kerberos? ( dev-python/pykerberos ) + kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] ) " DEPEND=" ${RDEPEND} @@ -55,20 +55,13 @@ python_compile_all() { fi } -src_test() { +python_test() { # Yes, we need TCP/IP for that... local DB_IP=127.0.0.1 local DB_PORT=27000 export DB_IP DB_PORT - # 1.5G of disk space per run. - local DISTUTILS_NO_PARALLEL_BUILD=1 - - distutils-r1_src_test -} - -python_test() { local dbpath=${TMPDIR}/mongo.db local logpath=${TMPDIR}/mongod.log @@ -114,11 +107,11 @@ python_test() { fi DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1 - mongod --dbpath "${dbpath}" --shutdown + mongod --dbpath "${dbpath}" --shutdown || die [[ ${failed} ]] && die "Tests fail with ${EPYTHON}" - rm -rf "${dbpath}" + rm -rf "${dbpath}" || die } python_install_all() {