commit:     1a7c213d8b26314af4d4f22f0909aee06ca5f266
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 31 18:28:56 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 31 18:36:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a7c213d

dev-python/cmd2: add IPython optfeature

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/cmd2/cmd2-2.6.0.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-python/cmd2/cmd2-2.6.0.ebuild 
b/dev-python/cmd2/cmd2-2.6.0.ebuild
index e276baa39045..47fc9c2b609e 100644
--- a/dev-python/cmd2/cmd2-2.6.0.ebuild
+++ b/dev-python/cmd2/cmd2-2.6.0.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{11..14} )
 
-inherit distutils-r1 virtualx pypi
+inherit distutils-r1 optfeature virtualx pypi
 
 DESCRIPTION="Extra features for standard library's cmd module"
 HOMEPAGE="
@@ -52,3 +52,7 @@ python_test() {
        # TODO: tests_isolated?
        epytest -o addopts= -p pytest_mock -p rerunfailures --reruns=5 tests || 
die
 }
+
+pkg_postinst() {
+       optfeature "IPython shell integration" dev-python/ipython
+}

Reply via email to