From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7C1BB13933E for ; Mon, 5 Jul 2021 11:16:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A05BFE0AA5; Mon, 5 Jul 2021 11:16:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85FAFE0AA5 for ; Mon, 5 Jul 2021 11:16:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 907FC33BEE8 for ; Mon, 5 Jul 2021 11:16:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA52E7C8 for ; Mon, 5 Jul 2021 11:16:14 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1625483662.d228931d62ee2cd5fc3bcf2c4148277bb50981e9.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/kafka-python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/kafka-python/kafka-python-1.4.7.ebuild X-VCS-Directories: dev-python/kafka-python/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: d228931d62ee2cd5fc3bcf2c4148277bb50981e9 X-VCS-Branch: master Date: Mon, 5 Jul 2021 11:16:14 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dbb2ba8e-54e0-497a-990c-ddcebdddb2be X-Archives-Hash: b968a50e1f1ff5e7cb97064efddd1254 commit: d228931d62ee2cd5fc3bcf2c4148277bb50981e9 Author: Michał Górny gentoo org> AuthorDate: Mon Jul 5 11:14:22 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Jul 5 11:14:22 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d228931d dev-python/kafka-python: Correct test dependencies Signed-off-by: Michał Górny gentoo.org> dev-python/kafka-python/kafka-python-1.4.7.ebuild | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/dev-python/kafka-python/kafka-python-1.4.7.ebuild b/dev-python/kafka-python/kafka-python-1.4.7.ebuild index 36adc8405d2..0a7e9046e9d 100644 --- a/dev-python/kafka-python/kafka-python-1.4.7.ebuild +++ b/dev-python/kafka-python/kafka-python-1.4.7.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +EAPI=8 +PYTHON_COMPAT=( python3_{8..9} ) inherit distutils-r1 DESCRIPTION="Kafka protocol support in Python" @@ -13,17 +13,12 @@ SRC_URI="https://github.com/dpkp/kafka-python/archive/${PV}.tar.gz -> ${P}.tar.g LICENSE="Apache-2.0" KEYWORDS="~amd64 ~x86" SLOT="0" -IUSE="snappy test" -RESTRICT="!test? ( test )" +IUSE="snappy" RDEPEND="snappy? ( dev-python/snappy[${PYTHON_USEDEP}] )" BDEPEND=" test? ( - ${RDEPEND} - dev-python/mock[${PYTHON_USEDEP}] - dev-python/unittest2[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] )" -python_test() { - unit2 -v || die "tests failed with ${EPYTHON}" -} +distutils_enable_tests pytest