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 0D9D21580B9 for ; Wed, 25 Aug 2021 18:12:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A87B1E0909; Wed, 25 Aug 2021 18:12:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 916F3E0909 for ; Wed, 25 Aug 2021 18:12:28 +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 98A34342BF7 for ; Wed, 25 Aug 2021 18:12:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B8A348D6 for ; Wed, 25 Aug 2021 18:12:24 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1629914928.8bb6bcb07ac41f300d430441a7cb0998fd3f94dc.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uncertainties/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/uncertainties/uncertainties-3.1.6.ebuild X-VCS-Directories: dev-python/uncertainties/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 8bb6bcb07ac41f300d430441a7cb0998fd3f94dc X-VCS-Branch: master Date: Wed, 25 Aug 2021 18:12:24 +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: d6d5f74a-2e1c-468f-8c08-a86bcac8f214 X-Archives-Hash: b9553e4fcf245c116cb7a0b40d46340b commit: 8bb6bcb07ac41f300d430441a7cb0998fd3f94dc Author: Arthur Zamarin gentoo org> AuthorDate: Wed Aug 25 18:08:48 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Aug 25 18:08:48 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bb6bcb0 dev-python/uncertainties: make numpy optional dep Signed-off-by: Arthur Zamarin gentoo.org> dev-python/uncertainties/uncertainties-3.1.6.ebuild | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dev-python/uncertainties/uncertainties-3.1.6.ebuild b/dev-python/uncertainties/uncertainties-3.1.6.ebuild index 79cf80d6291..69090d5bc1f 100644 --- a/dev-python/uncertainties/uncertainties-3.1.6.ebuild +++ b/dev-python/uncertainties/uncertainties-3.1.6.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 +inherit distutils-r1 optfeature DESCRIPTION="Python module for calculations with uncertainties" HOMEPAGE="https://pythonhosted.org/uncertainties/" @@ -15,13 +15,10 @@ SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="doc" -RDEPEND=" - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/future[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" -BDEPEND=" +RDEPEND="dev-python/future[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND} doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/numpy[${PYTHON_USEDEP}] ) " distutils_enable_tests nose @@ -34,3 +31,7 @@ python_install_all() { use doc && local HTML_DOCS=( build/sphinx/html/. ) distutils-r1_python_install_all } + +pkg_postinst() { + optfeature "numpy support" dev-python/numpy +}