From 7cb706d2ca4673d71c12bc16255d37ee78ef7afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 14 Apr 2026 04:05:34 +0200 Subject: [PATCH] dev-python/cmd2: Bump to 3.5.0 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-3.5.0.ebuild | 58 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 dev-python/cmd2/cmd2-3.5.0.ebuild diff --git a/dev-python/cmd2/Manifest b/dev-python/cmd2/Manifest index 302530d2f55f7..4eed67ebc4259 100644 --- a/dev-python/cmd2/Manifest +++ b/dev-python/cmd2/Manifest @@ -1,2 +1,3 @@ DIST cmd2-2.6.2.tar.gz 592373 BLAKE2B 917ecd684c60c0a6c1b273ef52fa1e317f71522dfd6fc8a9d2c1ee7fa28788b734c6536a9481ac56ef8409002f503837ae51191478a68e364c4780e9feb4b8e8 SHA512 75531dca561427eef259765a55c6385401edd8bc9d5c4cf08ab97e53e118334be932ee5c59f9e1fcd529a7a5f7416e654ee1d618d91623068ef21bcc66dcfdd7 DIST cmd2-3.4.0.tar.gz 710127 BLAKE2B 7bafd8d6a172b2a3cbc9d8eeae1a04002e61da7964593983d11e0e43574aa0a324b268bda6e118f22b2e4a1cb87f107c363c47d52f5cb74c4112aefec46a45f0 SHA512 e73bf4c1b66e40707082c3d42c99fdcb73b15e22e442e2489a386ae9d1c3f274e930e82c6320ced962852f6682544a86d788540166b6b4f0f77a08658b813e9b +DIST cmd2-3.5.0.tar.gz 707274 BLAKE2B 53e02be5c3f1531d767464d6b8765eafe5134b8711388e2adacba35486d035f64f49d6bf74c8f6e6b94a9d1f2a7843c2993c2eb94950bf12c603cfc1ade37263 SHA512 dc2d3181113146df5df4ae5b68f28c71476b32bdf1d9e34f03cac979a3cbf2759d850111515b95f0e76129d5aa054c87cf3ee8aafab592b3e9817a9fd32e04dd diff --git a/dev-python/cmd2/cmd2-3.5.0.ebuild b/dev-python/cmd2/cmd2-3.5.0.ebuild new file mode 100644 index 0000000000000..d90b8471bd5c5 --- /dev/null +++ b/dev-python/cmd2/cmd2-3.5.0.ebuild @@ -0,0 +1,58 @@ +# 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_{11..14} ) + +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 ~mips ~ppc64 ~riscv ~s390 ~x86" + +RDEPEND=" + >=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 +}