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.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 408F2158089 for ; Tue, 31 Oct 2023 00:06:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 806CF2BC033; Tue, 31 Oct 2023 00:06:37 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 67C442BC033 for ; Tue, 31 Oct 2023 00:06:37 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C882335CB7 for ; Tue, 31 Oct 2023 00:06:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA8B911BA for ; Tue, 31 Oct 2023 00:06:34 +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: <1698710738.e6ee46bc4c5843053bbf29eb638a49323d39f8a3.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib-inline/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/matplotlib-inline/matplotlib-inline-0.1.6-r1.ebuild X-VCS-Directories: dev-python/matplotlib-inline/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e6ee46bc4c5843053bbf29eb638a49323d39f8a3 X-VCS-Branch: master Date: Tue, 31 Oct 2023 00:06:34 +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: 6814db05-756c-4c31-9407-3b9c4a9163f5 X-Archives-Hash: 69b642a016349b84c191f27881eac74e commit: e6ee46bc4c5843053bbf29eb638a49323d39f8a3 Author: Eli Schwartz gmail com> AuthorDate: Fri Oct 13 03:51:32 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue Oct 31 00:05:38 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6ee46bc dev-python/matplotlib-inline: drop undesirable dependency on matplotlib This python module is an ipython extension that exists solely to implement the `%matplotlib` magic inside of the ipython shell and directly interacts with the ipython extension API to do it. Despite this, it does NOT have an ebuild dependency on ipython itself, even though you cannot `import matplotlib_inline.backend_inline` without ipython installed. It does have a dependency on matplotlib, which is another import-time import. However, the setup.cfg intentionally avoids depending on either one. This is because both are actually internal implementation details of *ipython*. In turn, ipython does not wish to have a mandatory runtime dependency on matplotlib, all it wishes to do is have code prepared and ready to import matplotlib, should a user execute `%matplotlib` in the interactive console. In this case, it is assumed that the user has also installed matplotlib. Respect the upstream dependency. Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> .../matplotlib-inline-0.1.6-r1.ebuild | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/dev-python/matplotlib-inline/matplotlib-inline-0.1.6-r1.ebuild b/dev-python/matplotlib-inline/matplotlib-inline-0.1.6-r1.ebuild new file mode 100644 index 000000000000..0803c515b454 --- /dev/null +++ b/dev-python/matplotlib-inline/matplotlib-inline-0.1.6-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="Inline Matplotlib backend for Jupyter" +HOMEPAGE="https://github.com/ipython/matplotlib-inline/" +SRC_URI=" + https://github.com/ipython/matplotlib-inline/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +# Although in theory we could depend on matplotlib, upstream does not. +# This is because the sole purpose of the package is to be loaded by +# ipython (also not a dependency!) as a response to interactive use of +# the "%matplotlib" magic. +# +# In order to be seamless and straightforward, this backend is always +# installed and just requires users using matplotlib, to install +# matplotlib before importing and using it. +RDEPEND=" + dev-python/traitlets[${PYTHON_USEDEP}] +"