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 BB0D11382C5 for ; Thu, 28 Jan 2021 10:58:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA26EE0A8C; Thu, 28 Jan 2021 10:58:25 +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 63D27E0A8C for ; Thu, 28 Jan 2021 10:58:25 +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 CA245340DBB for ; Thu, 28 Jan 2021 10:58:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 488D44AB for ; Thu, 28 Jan 2021 10:58:22 +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: <1611831481.cc4c70c2099d94ee9346279a0341805e08b5dd9e.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/snakeoil/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/snakeoil/snakeoil-0.9.0.ebuild dev-python/snakeoil/snakeoil-9999.ebuild X-VCS-Directories: dev-python/snakeoil/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: cc4c70c2099d94ee9346279a0341805e08b5dd9e X-VCS-Branch: master Date: Thu, 28 Jan 2021 10:58:22 +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: 1f6309d6-2600-413c-af8f-d8adfcdc31b0 X-Archives-Hash: 960c63fef7cce271e09a9ef44d9e9e78 commit: cc4c70c2099d94ee9346279a0341805e08b5dd9e Author: Michał Górny gentoo org> AuthorDate: Thu Jan 28 10:09:00 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jan 28 10:58:01 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc4c70c2 dev-python/snakeoil: Modernize Signed-off-by: Michał Górny gentoo.org> dev-python/snakeoil/snakeoil-0.9.0.ebuild | 13 +++---------- dev-python/snakeoil/snakeoil-9999.ebuild | 15 ++++----------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/dev-python/snakeoil/snakeoil-0.9.0.ebuild b/dev-python/snakeoil/snakeoil-0.9.0.ebuild index 17c7a024b1f..0a7822decd0 100644 --- a/dev-python/snakeoil/snakeoil-0.9.0.ebuild +++ b/dev-python/snakeoil/snakeoil-0.9.0.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{8..9} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -19,14 +19,7 @@ HOMEPAGE="https://github.com/pkgcore/snakeoil" LICENSE="BSD BSD-2 MIT" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" -[[ ${PV} == 9999 ]] && DEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" +[[ ${PV} == 9999 ]] && BDEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" -python_test() { - esetup.py test -} +distutils_enable_tests pytest diff --git a/dev-python/snakeoil/snakeoil-9999.ebuild b/dev-python/snakeoil/snakeoil-9999.ebuild index 0c98e3d1834..0a7822decd0 100644 --- a/dev-python/snakeoil/snakeoil-9999.ebuild +++ b/dev-python/snakeoil/snakeoil-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{8..9} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -19,14 +19,7 @@ HOMEPAGE="https://github.com/pkgcore/snakeoil" LICENSE="BSD BSD-2 MIT" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" -[[ ${PV} == 9999 ]] && DEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" +[[ ${PV} == 9999 ]] && BDEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" -python_test() { - esetup.py test -} +distutils_enable_tests pytest