From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1535216-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2C69915800D for <garchives@archives.gentoo.org>; Thu, 6 Jul 2023 14:15:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C11CE07F1; Thu, 6 Jul 2023 14:15:16 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4DC2CE07F6 for <gentoo-commits@lists.gentoo.org>; Thu, 6 Jul 2023 14:15:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5B21C340FF6 for <gentoo-commits@lists.gentoo.org>; Thu, 6 Jul 2023 14:15:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3EC2AC3 for <gentoo-commits@lists.gentoo.org>; Thu, 6 Jul 2023 14:15:13 +0000 (UTC) From: "Michał Górny" <mgorny@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, "Michał Górny" <mgorny@gentoo.org> Message-ID: <1688652910.861682b10d028a623b5bb99dcfb1da0dabf05009.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jaraco-text/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jaraco-text/jaraco-text-3.11.1.ebuild dev-python/jaraco-text/metadata.xml X-VCS-Directories: dev-python/jaraco-text/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 861682b10d028a623b5bb99dcfb1da0dabf05009 X-VCS-Branch: master Date: Thu, 6 Jul 2023 14:15:13 +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: 53989ec3-1979-4b8a-a14a-dbeb74e1431d X-Archives-Hash: 241f08d03bab8756be1ec16234ffadf6 commit: 861682b10d028a623b5bb99dcfb1da0dabf05009 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jul 6 14:05:31 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jul 6 14:15:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=861682b1 dev-python/jaraco-text: Make CLI dependencies optional Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/jaraco-text/jaraco-text-3.11.1.ebuild | 10 ++++++++-- dev-python/jaraco-text/metadata.xml | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild b/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild index 3c4773fac6e5..4a3217e4b983 100644 --- a/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild +++ b/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild @@ -21,6 +21,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="cli" RDEPEND=" >=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}] @@ -28,13 +29,18 @@ RDEPEND=" " # needed only for CLI tool, make it PDEPEND to reduce pain in setuptools # bootstrap -PDEPEND=" +CLI_DEPEND=" $(python_gen_cond_dep ' dev-python/autocommand[${PYTHON_USEDEP}] dev-python/inflect[${PYTHON_USEDEP}] dev-python/more-itertools[${PYTHON_USEDEP}] ' "${CLI_COMPAT[@]}") " +PDEPEND=" + cli? ( + ${CLI_DEPEND} + ) +" BDEPEND=" test? ( ${PDEPEND} @@ -65,7 +71,7 @@ src_configure() { python_test() { local EPYTEST_IGNORE=() - if ! has "${EPYTHON/./_}" "${CLI_COMPAT[@]}"; then + if ! use cli || ! has "${EPYTHON/./_}" "${CLI_COMPAT[@]}"; then EPYTEST_IGNORE+=( jaraco/text/show-newlines.py jaraco/text/strip-prefix.py diff --git a/dev-python/jaraco-text/metadata.xml b/dev-python/jaraco-text/metadata.xml index 53b2aac86a52..7d0942d6335b 100644 --- a/dev-python/jaraco-text/metadata.xml +++ b/dev-python/jaraco-text/metadata.xml @@ -12,4 +12,9 @@ <bugs-to>https://github.com/jaraco/jaraco.text/issues</bugs-to> <changelog>https://github.com/jaraco/jaraco.text/blob/master/CHANGES.rst</changelog> </upstream> + <use> + <flag name="cli"> + Install dependencies needed for CLI tools (Rust warning!) + </flag> + </use> </pkgmetadata>