commit: ea1ef4365ad181c0c89650dc7dfef9e786174f3c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 15 04:47:12 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov 15 04:59:16 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea1ef436
dev-python/cmd2: Bump to 2.5.6
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/cmd2/Manifest | 1 +
dev-python/cmd2/cmd2-2.5.6.ebuild | 53 +++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/dev-python/cmd2/Manifest b/dev-python/cmd2/Manifest
index cb9c7409191d..ff72167455d7 100644
--- a/dev-python/cmd2/Manifest
+++ b/dev-python/cmd2/Manifest
@@ -1,2 +1,3 @@
DIST cmd2-2.4.3.tar.gz 678661 BLAKE2B
806fbd6abc26737032dd6330ebabc1e5308e9082f9c98002845a54f1458d314feb476e4d491892e74cde16f5043c57495426ad50aaf3e7e8d0d938f0388db6e2
SHA512
1d440752262f38a742069e636373884edcc49c17ba17b21b24015cfe559b4df36b45ac9489f2f643897fbd38f54b8e6120daf07ef25d2f209af8a4ac8e4c0085
DIST cmd2-2.5.5.tar.gz 689948 BLAKE2B
60ffb516b4b410541281a34647b904a41e2fbbff96dfd6d896fd11a66385469606c3f7c27cbd7aa22c0b84af3c9db8e5facd2fe394608ab4294b2c95965837bc
SHA512
b83e76ddb101b1f30239ad60bd00c75f9fbe67ff70b5758f7e9c9d4519f7916667b0eb87c75dda9c06295de74b6827e5dd218f5fb124893c32b43dca3fb1ef42
+DIST cmd2-2.5.6.tar.gz 690006 BLAKE2B
600e12c97914ed473111e9d7739c20a7a1c9dfb2f26c503ee988bf1010450c1f97fe16c2c95efd7cdd196ee4e4539043c54c510be0c3da6560ed4d4822131230
SHA512
f5c9b416b112b70d0aca08961a8ccdac2912b32e0f67e7c925010ac91a0a55a403bce055b2ec770aff560e3f7f706b15f30915fd983494957f1d9ae58980572e
diff --git a/dev-python/cmd2/cmd2-2.5.6.ebuild
b/dev-python/cmd2/cmd2-2.5.6.ebuild
new file mode 100644
index 000000000000..820c48bb0ffa
--- /dev/null
+++ b/dev-python/cmd2/cmd2-2.5.6.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 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 ~sparc
~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ dev-python/pyperclip[${PYTHON_USEDEP}]
+ dev-python/wcwidth[${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/pytest-mock[${PYTHON_USEDEP}]
+ || (
+ x11-misc/xclip
+ x11-misc/xsel
+ )
+ )
+"
+
+distutils_enable_tests pytest
+
+src_test() {
+ # tests rely on very specific text wrapping...
+ local -x COLUMNS=80
+ virtx distutils-r1_src_test
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ # TODO: tests_isolated?
+ epytest -o addopts= -p pytest_mock tests || die
+}