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 5122E1382C5 for ; Thu, 14 May 2020 09:29:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 59415E0937; Thu, 14 May 2020 09:29:36 +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 3A712E0905 for ; Thu, 14 May 2020 09:29:36 +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 41F64350A5B for ; Thu, 14 May 2020 09:29:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C19A2234 for ; Thu, 14 May 2020 09:29:31 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1589366963.9967245d2f7cb62fcbca8566e0aecb03ae8edfa4.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pylatex/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pylatex/metadata.xml dev-python/pylatex/pylatex-1.3.1.ebuild X-VCS-Directories: dev-python/pylatex/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 9967245d2f7cb62fcbca8566e0aecb03ae8edfa4 X-VCS-Branch: master Date: Thu, 14 May 2020 09:29:31 +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: 6880cfa4-aa2d-43ff-be47-da7b146f9046 X-Archives-Hash: 62d417521bca4224a7b4b2b544c43e87 commit: 9967245d2f7cb62fcbca8566e0aecb03ae8edfa4 Author: David Denoncin gmail com> AuthorDate: Wed May 13 10:48:15 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Wed May 13 10:49:23 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9967245d dev-python/pylatex: added dev-python/quantities with extras use flag Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: David Denoncin gmail.com> dev-python/pylatex/metadata.xml | 1 + dev-python/pylatex/pylatex-1.3.1.ebuild | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dev-python/pylatex/metadata.xml b/dev-python/pylatex/metadata.xml index ab99695..212167a 100644 --- a/dev-python/pylatex/metadata.xml +++ b/dev-python/pylatex/metadata.xml @@ -9,5 +9,6 @@ Optionally add dev-python/numpy Optionally add dev-python/matplotlib + Optionally add dev-python/quantities diff --git a/dev-python/pylatex/pylatex-1.3.1.ebuild b/dev-python/pylatex/pylatex-1.3.1.ebuild index 97967ff..c15bb8b 100644 --- a/dev-python/pylatex/pylatex-1.3.1.ebuild +++ b/dev-python/pylatex/pylatex-1.3.1.ebuild @@ -17,12 +17,13 @@ SRC_URI="https://github.com/JelteF/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}.ta LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="examples matplotlib numpy" # quantities can be used also, but is not a gentoo package. +IUSE="examples matplotlib numpy extras" DEPEND=" dev-python/ordered-set[${PYTHON_USEDEP}] matplotlib? ( dev-python/matplotlib[$PYTHON_USEDEP] ) numpy? ( dev-python/numpy[$PYTHON_USEDEP] ) + extras? ( dev-python/quantities[$PYTHON_USEDEP] ) " RDEPEND="${DEPEND}" @@ -48,6 +49,8 @@ python_install_all() { } src_test() { - rm "${S}"/tests/test_quantities.py # quantities is not a gentoo package + if ! use extras ; then + rm "${S}"/tests/test_quantities.py # remove if quantities is not installed + fi distutils-r1_src_test }