summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-11-23 07:40:49 +0100
committerMichał Górny <mgorny@gentoo.org>2024-11-23 08:09:50 +0100
commitb78f33de37bbd01de3f4e18772ad39af544e715e (patch)
tree26d5ca6a9d43997c4cd72148aa8b181088a2603c /dev-python
parentcac9c9da2e4a2720b5932f8be2bcda8026dd90e5 (diff)
downloadgentoo-b78f33de37bbd01de3f4e18772ad39af544e715e.tar.gz
gentoo-b78f33de37bbd01de3f4e18772ad39af544e715e.tar.bz2
gentoo-b78f33de37bbd01de3f4e18772ad39af544e715e.zip
dev-python/cmd2: Bump to 2.5.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cmd2/Manifest1
-rw-r--r--dev-python/cmd2/cmd2-2.5.7.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/cmd2/Manifest b/dev-python/cmd2/Manifest
index ff72167455d7..7488c14c5dcb 100644
--- a/dev-python/cmd2/Manifest
+++ b/dev-python/cmd2/Manifest
@@ -1,3 +1,4 @@
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
+DIST cmd2-2.5.7.tar.gz 691584 BLAKE2B a43f22817cd028913d1ec49150d826e33ddde1037c2cd1bce066d9ee85c20e5f59daa1b7d5365968aa7f17e3709bd7a58e586c449415ea93f62b157df08eb366 SHA512 b230b7fbad97bdba28a1335839e13c711ef629b0c18c1773c24c64a34626217659e1c362e8d72d71726baa06c50ba3f89732860eee8e527d1485de17e0eeacb7
diff --git a/dev-python/cmd2/cmd2-2.5.7.ebuild b/dev-python/cmd2/cmd2-2.5.7.ebuild
new file mode 100644
index 000000000000..820c48bb0ffa
--- /dev/null
+++ b/dev-python/cmd2/cmd2-2.5.7.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
+}