public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib-inline/
Date: Tue, 31 Oct 2023 00:06:34 +0000 (UTC)	[thread overview]
Message-ID: <1698710738.e6ee46bc4c5843053bbf29eb638a49323d39f8a3.sam@gentoo> (raw)

commit:     e6ee46bc4c5843053bbf29eb638a49323d39f8a3
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Fri Oct 13 03:51:32 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> 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}]
+"


             reply	other threads:[~2023-10-31  0:06 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-31  0:06 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-20 17:09 [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib-inline/ Michał Górny
2024-07-08  9:36 Sam James
2024-05-01 17:44 Michał Górny
2024-05-01 16:22 Sam James
2024-04-16  6:46 Michał Górny
2023-11-29 10:07 Michał Górny
2023-11-29 10:03 Michał Górny
2023-11-16 19:43 Michał Górny
2022-09-20  5:57 Michał Górny
2022-09-19 19:49 Arthur Zamarin
2022-08-18 18:11 Arthur Zamarin
2022-08-17 18:28 Arthur Zamarin
2022-08-17 18:28 Arthur Zamarin
2022-03-26 18:20 Arthur Zamarin
2022-03-26 17:15 Arthur Zamarin
2022-02-23 21:30 Michał Górny
2021-10-17  7:15 Michał Górny
2021-10-16 22:27 Sam James
2021-10-16 22:04 Sam James
2021-10-16 22:00 Sam James
2021-10-11 15:18 Sam James
2021-10-10 15:38 Agostino Sarubbo
2021-10-09 19:18 Sam James
2021-09-26 17:52 Sam James
2021-09-08 16:19 Sam James
2021-09-07 20:50 Michał Górny
2021-07-01 14:45 Michał Górny
2021-06-07 13:18 Agostino Sarubbo
2021-06-06 13:03 Sam James
2021-06-06 13:01 Sam James
2021-06-05 20:35 Sam James
2021-05-16  0:13 Sam James
2021-05-15 19:44 Sam James
2021-05-15 19:32 Sam James
2021-05-15 19:25 Sam James
2021-05-01  7:45 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1698710738.e6ee46bc4c5843053bbf29eb638a49323d39f8a3.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox