From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1295899-garchives=archives.gentoo.org@lists.gentoo.org> 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 0C5781382C5 for <garchives@archives.gentoo.org>; Tue, 22 Jun 2021 00:58:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC084E083B; Tue, 22 Jun 2021 00:58:52 +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 5B7EEE083B for <gentoo-commits@lists.gentoo.org>; Tue, 22 Jun 2021 00:58:52 +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 AF8A434076D for <gentoo-commits@lists.gentoo.org>; Tue, 22 Jun 2021 00:58:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5E87235 for <gentoo-commits@lists.gentoo.org>; Tue, 22 Jun 2021 00:58:48 +0000 (UTC) From: "Zac Medico" <zmedico@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" <zmedico@gentoo.org> Message-ID: <1624323148.d804dfa0aa9ffeae731255372171ce6fca461950.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/agate/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/agate/agate-1.6.2.ebuild X-VCS-Directories: dev-python/agate/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: d804dfa0aa9ffeae731255372171ce6fca461950 X-VCS-Branch: master Date: Tue, 22 Jun 2021 00:58:48 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7942881a-a3c7-48d5-8c20-903bae6f3145 X-Archives-Hash: dfe83b80232ce8805c2938bad1e299f8 commit: d804dfa0aa9ffeae731255372171ce6fca461950 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Jun 22 00:34:36 2021 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Jun 22 00:52:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d804dfa0 dev-python/agate: add xml test-against dependency Bug: https://bugs.gentoo.org/797397 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> dev-python/agate/agate-1.6.2.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dev-python/agate/agate-1.6.2.ebuild b/dev-python/agate/agate-1.6.2.ebuild index 390df28bbab..fd3497ce471 100644 --- a/dev-python/agate/agate-1.6.2.ebuild +++ b/dev-python/agate/agate-1.6.2.ebuild @@ -13,8 +13,12 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="test" +IUSE="test +xml" RESTRICT="!test? ( test )" + +# Other packages have BDEPEND="test? ( dev-python/agate[xml] )" +LEATHER_VERSION_DEP=">=dev-python/leather-0.3.2" +TEST_AGAINST_RDEPEND="xml? ( ${LEATHER_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" RDEPEND=" >=dev-python/six-1.9.0[${PYTHON_USEDEP}] >=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}] @@ -23,9 +27,11 @@ RDEPEND=" >=dev-python/isodate-0.5.4[${PYTHON_USEDEP}] >=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}] >=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}] - >=dev-python/leather-0.3.2[${PYTHON_USEDEP}] + ${LEATHER_VERSION_DEP}[${PYTHON_USEDEP}] + + ${TEST_AGAINST_RDEPEND} " -BDEPEND="test? ( >=dev-python/leather-0.3.2[xml,${PYTHON_USEDEP}] )" +BDEPEND="test? ( ${LEATHER_VERSION_DEP}[xml,${PYTHON_USEDEP}] )" distutils_enable_tests pytest