mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
dev-python/cmd2: Bump to 3.3.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -4,3 +4,4 @@ DIST cmd2-3.1.2.tar.gz 708232 BLAKE2B 45f66f9c78b6f2dc244ed03f924b504c9c4435e892
|
||||
DIST cmd2-3.1.3.tar.gz 709193 BLAKE2B a2856db6e6554138b3cc9b4c0cfd4ab71eae5eebb66802a4f51dc983a31f706c2c0cfd27992ebcc08b01e65aa74b3c5ca1b7f21cf66d56e9c7ebd211586747cd SHA512 d612c1f543b5e9fedcca0bc368b8b1c5f3a27c4e1ab5229ac4bafbca167680a006d7bc9d7946eef65f6efbe843b5bf7c662acabebacce685cfa779840a8006cb
|
||||
DIST cmd2-3.2.0.tar.gz 705044 BLAKE2B 994cb9350e83f02486269a0b006ea9a95fb6700b1a41f53b354ca88013bdbb5cef2ea64e1932f1c72831b2ff99ddee31ec4e5c55697ac44e4cb8cd9bc977be24 SHA512 03d1564c0b9731ec2b2ee9781c54ce9c7b81e871d2a791f77beff26e92afd7a26f94ac90136a53b93ec250d4250c688da90b3fbd0e6cb29dffff7367524e37db
|
||||
DIST cmd2-3.2.2.tar.gz 706453 BLAKE2B 8cd79320190191a279ddc7c5ff011a5bf73d89b46f36870e19aea554c450e9830d9fba647be7f70499c2cf0d2847f9673c36ff824c2f394f52cd4d7aad2dbb41 SHA512 d384e85fc007db1387be5036747894d77552ab0009e7a3bf2465b85893921dbc36b902636b98485e1eac069b878ac460aeaa92078ddd4befdf0f8f3595d76e16
|
||||
DIST cmd2-3.3.0.tar.gz 709745 BLAKE2B 608798fc5a79c59f1d00f81eb1eaed316feff3fa897cb1a45a0965d13b7eaebc3a36fb068708f9e702267079f04e850b8d3d0f66df4f13ab58db2dfd93ba8b1d SHA512 550d7557c06449199da17856959c7344e8382fbf7d5d5ff5e5c21ad7413506badbb0d73167a4bb56f751a2b4b4efb3e96c024da4f955c09f1eb863b10226c630
|
||||
|
||||
@@ -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-14.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/rich-argparse-1.7.1[${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
|
||||
}
|
||||
Reference in New Issue
Block a user