diff --git a/dev-python/cmd2/Manifest b/dev-python/cmd2/Manifest index 174023aa1afe6..2ad769f94fa03 100644 --- a/dev-python/cmd2/Manifest +++ b/dev-python/cmd2/Manifest @@ -6,3 +6,5 @@ DIST cmd2-4.4.1.tar.gz 816988 BLAKE2B 3d6214343dcce06662c8ad3e2f9fd3961496a3740d DIST cmd2-4.4.1.tar.gz.provenance 9628 BLAKE2B a93ccedb7619079636242928b9920ff114c46c609656b93c0411c90654d66be62308d3e632774adcb61cf9df4bc9bfc28854a41dc9d9fce0e43fb7287d229090 SHA512 eb088e566ac38d9899131df04d63bc33334e5d8c74cc24c394af8f7c2d1d349e76fbf810cadd8ea195616afc6ea4f8168dfb1b7bf92d1ea44ac0691323c8a44f DIST cmd2-4.4.2.tar.gz 819434 BLAKE2B 37fa6a3d87a6c217e89e3ede2e53316db2522a31c05fbc42ec4e0ab399ebd1943708530b759b0923ed2f1631209c4cc0247bd09715a2ec0238b732d734354f41 SHA512 465f45144831f59757c7dfccbf1b04862539c7f637b73e27407ee84e5360cfa83e956d4e333720b3736ed5083e0436f6c633fe106891c5fde80b00f03cefdd03 DIST cmd2-4.4.2.tar.gz.provenance 9683 BLAKE2B e1bb7218cbf001e6be10c673749aebc24954af605859dba089f9d5e22d3ee6512e3a0f1c30ea59da1d1ba24c6ba72a63124f1d71761fbd4b1df05de47cc02b5c SHA512 f9568e309c5c7752b25faebf0a6fa88fbc22c8a7c76ef10aa819ea2a1960532b03ad133710f9a35ec3e6aff923a4f0778e82f4ed12fc23f4f3438f751717a557 +DIST cmd2-4.4.3.tar.gz 840963 BLAKE2B 6a3393c587d8c6b27ea24d227b1a65c438602e7ca80ed3fd80c61bd916b1d37d0b281e3ac7116aedc3db38397047fad73ac1a0c955ffdd524e988cacd4e9bc8a SHA512 f4ac4cba169a506742ebae57a8952dc2df1b2e4c5fd9eb79ca5c1e2719440590ee5094b93bbbb864e75acd8a711c6e1feabd7eb54e804bb8d82d7c1522d87ca0 +DIST cmd2-4.4.3.tar.gz.provenance 9581 BLAKE2B 998736fb81cd78933aa1ee40bd65d43a5093ee96c18775bfdeadbe87c6907f07164157b8b6998d980296d66d5258a683dfbbbaf1d5a9a360a86006a34c38d419 SHA512 2305a94d7846a2459ec27607d3e054951f578c542b77f9e3a345d55a26eaf290de6dec8d80e25117e82d325210dad708efeba599039d42827065f9246a05daca diff --git a/dev-python/cmd2/cmd2-4.4.3.ebuild b/dev-python/cmd2/cmd2-4.4.3.ebuild new file mode 100644 index 0000000000000..6f8c406da3177 --- /dev/null +++ b/dev-python/cmd2/cmd2-4.4.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/python-cmd2/cmd2 +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="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~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? ( + dev-python/pyte[${PYTHON_USEDEP}] + || ( + 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 +}