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 D50B71382C5 for ; Thu, 1 Apr 2021 21:17:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26CDAE08F0; Thu, 1 Apr 2021 21:17:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 087CCE08F0 for ; Thu, 1 Apr 2021 21:17:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 18208340CD0 for ; Thu, 1 Apr 2021 21:17:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 747055CF for ; Thu, 1 Apr 2021 21:17:27 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1617311822.a6503185001adad02f1adea45f4f021f8c4ac452.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/yadm/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/yadm/yadm-2.4.0.ebuild X-VCS-Directories: app-admin/yadm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a6503185001adad02f1adea45f4f021f8c4ac452 X-VCS-Branch: master Date: Thu, 1 Apr 2021 21:17:27 +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: 18d60396-90d3-4eea-a246-8e601842cb3f X-Archives-Hash: 4842d2e79d9d854891988cc635eebd8d commit: a6503185001adad02f1adea45f4f021f8c4ac452 Author: Sam James gentoo org> AuthorDate: Thu Apr 1 01:57:29 2021 +0000 Commit: Sam James gentoo org> CommitDate: Thu Apr 1 21:17:02 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6503185 app-admin/yadm: use python-any-r1 API for tests Signed-off-by: Sam James gentoo.org> app-admin/yadm/yadm-2.4.0.ebuild | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/app-admin/yadm/yadm-2.4.0.ebuild b/app-admin/yadm/yadm-2.4.0.ebuild index 10da88e012a..b056f1e5a96 100644 --- a/app-admin/yadm/yadm-2.4.0.ebuild +++ b/app-admin/yadm/yadm-2.4.0.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit bash-completion-r1 +PYTHON_COMPAT=( python3_{7,8,9} ) +inherit bash-completion-r1 python-any-r1 DESCRIPTION="A dotfile manager for the config files in your home folder" HOMEPAGE="https://github.com/TheLocehiliosan/yadm/" @@ -21,13 +22,23 @@ RDEPEND=" dev-vcs/git " -DEPEND=" - test? ( ${RDEPEND} +BDEPEND=" + test? ( + ${RDEPEND} + ${PYTHON_DEPS} dev-python/pytest dev-tcltk/expect ) " +python_check_deps() { + has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_compile() { emake "${PN}.md" }