From be60873cf32b06cfea977c376f3dd58d84d62b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 26 Aug 2026 05:57:15 +0200 Subject: [PATCH] dev-python/cmd2: Bump to 4.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/cmd2/Manifest | 1 + dev-python/cmd2/cmd2-4.2.2.ebuild | 59 +++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 dev-python/cmd2/cmd2-4.2.2.ebuild diff --git a/dev-python/cmd2/Manifest b/dev-python/cmd2/Manifest index aff16b415d6eb..7fcf479fd1842 100644 --- a/dev-python/cmd2/Manifest +++ b/dev-python/cmd2/Manifest @@ -1,2 +1,3 @@ DIST cmd2-4.1.2.tar.gz 848904 BLAKE2B 515fb26b4df87be2d646ca2fbaf8b26acddb2f79b5a5117b9acdabec242153e3e33fdc3262dfe00c71280f1636faae3d39d7c44a0d6bdf2ed4b91b74acf2a27b SHA512 116bae054877a1d96d7f2c7399460b212e772f33b62f69aa60e24008452f7d2ae7b801c669da4fdf80b7153df2a60796c91732e7348b19bfea22dca343453efa DIST cmd2-4.2.1.tar.gz 854163 BLAKE2B f1dea29bf9aae55b27d87e0ce01d4668bda416e4fd66508b399d498a692fa2f6574115b12770347d1b43d9d77ae58dc919f9d44aacc881db6484a4f228b82611 SHA512 6f9543b354c448582247d004e7f0c876219827a28b88118b0f359d87e0750a2fd6cea1eadab5aaaa40bd1b0c4c0c406e48a38cd50b810071d2dfcc2098d74338 +DIST cmd2-4.2.2.tar.gz 856874 BLAKE2B f4ae9262dfe765693c33e9503c1835adbbada66de5ae8f82d0ae2920915b1bb4fea2d69b2f553b21671895f37c096a77e34db1f026a502808b03bbe8a1163bf8 SHA512 2b337ad2e9f18cf39ed76388a1733f76458509ecbc812f1aa828d6acc781a0bf82b7659ebe4c3ed79a1fdbb5332af9fd831312293214e4780d8698e59b4a64c5 diff --git a/dev-python/cmd2/cmd2-4.2.2.ebuild b/dev-python/cmd2/cmd2-4.2.2.ebuild new file mode 100644 index 0000000000000..d376ffa2a2ddd --- /dev/null +++ b/dev-python/cmd2/cmd2-4.2.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..15} ) + +inherit distutils-r1 optfeature virtualx pypi + +DESCRIPTION="Extra features for standard library's cmd module" +HOMEPAGE=" + https://github.com/python-cmd2/cmd2/ + https://pypi.org/project/cmd2/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc64 ~riscv ~s390 ~x86" + +RDEPEND=" + >=dev-python/prompt-toolkit-3.0.53[${PYTHON_USEDEP}] + >=dev-python/pyperclip-1.8.2[${PYTHON_USEDEP}] + >=dev-python/rich-15.0.0[${PYTHON_USEDEP}] + >=dev-python/rich-argparse-1.7.2[${PYTHON_USEDEP}] +" +# pyperclip uses clipboard backends in the following preference order: +# pygtk, xclip, xsel, klipper, qtpy, pyqt5, pyqt4. +# klipper is known to be broken in Xvfb, and therefore causes test +# failures. to avoid them, we must ensure that one of the backends +# preferred to it is available (i.e. xclip or xsel). +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + || ( + x11-misc/xclip + x11-misc/xsel + ) + ) +" + +EPYTEST_PLUGINS=( pytest-mock ) +EPYTEST_RERUNS=5 +distutils_enable_tests pytest + +src_test() { + # tests rely on very specific text wrapping... + local -x COLUMNS=80 + virtx distutils-r1_src_test +} + +python_test() { + # TODO: tests_isolated? + nonfatal epytest -o addopts= tests || die +} + +pkg_postinst() { + optfeature "IPython shell integration" dev-python/ipython +}