Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cmd2/
Date: Mon, 01 Feb 2021 08:50:57
Message-Id: 1612169444.e81de5b8bdbdf303ce670b754a46520e7d293199.mgorny@gentoo
1 commit: e81de5b8bdbdf303ce670b754a46520e7d293199
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 08:20:56 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 08:50:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e81de5b8
7
8 dev-python/cmd2: Bump to 1.5.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/cmd2/Manifest | 1 +
13 dev-python/cmd2/cmd2-1.5.0.ebuild | 50 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-python/cmd2/Manifest b/dev-python/cmd2/Manifest
17 index f5be7949696..479b36671f1 100644
18 --- a/dev-python/cmd2/Manifest
19 +++ b/dev-python/cmd2/Manifest
20 @@ -1 +1,2 @@
21 DIST cmd2-1.4.0.tar.gz 660494 BLAKE2B 1a7d5efef704cf3011affa99303233ad9d16e09d16bbe9319324599e6d69b1a664556e9ed406f2a34bfc6021a6d1607a44fd4df9cedbd6688826e0bfe8d91b77 SHA512 1f35e9773578a1d2ea1255cd697754b126c1e90486e84319c0f86ee409ed22bfbc267ff1d3b9af1072985337c9cbc51eac4e288281146d9c20b54c8b364f1547
22 +DIST cmd2-1.5.0.tar.gz 662624 BLAKE2B ed46c4e70f1e09c612f66333bb601afab0158a899badd2b86ce193f7384c35d32c58d0a1238d5fc2b69adc11a233fba2089b0f4433c7b6159aeb347150128fb2 SHA512 ea7e26370e1f83dc95bd0db8a705ab8ea95935584123f4684e3b8debf23a37fbcadf2bc1634051eaddcaba92f2b22a0ab2582773630fab3d1482b4dc8a23acd6
23
24 diff --git a/dev-python/cmd2/cmd2-1.5.0.ebuild b/dev-python/cmd2/cmd2-1.5.0.ebuild
25 new file mode 100644
26 index 00000000000..d098041609c
27 --- /dev/null
28 +++ b/dev-python/cmd2/cmd2-1.5.0.ebuild
29 @@ -0,0 +1,50 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{7..9} )
35 +
36 +inherit distutils-r1 virtualx
37 +
38 +DESCRIPTION="Extra features for standard library's cmd module"
39 +HOMEPAGE="https://github.com/python-cmd2/cmd2"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +
46 +RDEPEND="
47 + dev-python/attrs[${PYTHON_USEDEP}]
48 + >=dev-python/colorama-0.3.7[${PYTHON_USEDEP}]
49 + >=dev-python/pyperclip-1.6[${PYTHON_USEDEP}]
50 + dev-python/six[${PYTHON_USEDEP}]
51 + dev-python/wcwidth[${PYTHON_USEDEP}]
52 + $(python_gen_cond_dep '
53 + >=dev-python/importlib_metadata-1.6.0[${PYTHON_USEDEP}]
54 + ' python3_{6,7})
55 +"
56 +# pyperclip uses clipboard backends in the following preference order:
57 +# pygtk, xclip, xsel, klipper, qtpy, pyqt5, pyqt4.
58 +# klipper is known to be broken in Xvfb, and therefore causes test
59 +# failures. to avoid them, we must ensure that one of the backends
60 +# preferred to it is available (i.e. xclip or xsel) + which(1).
61 +BDEPEND="
62 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
63 + test? (
64 + dev-python/pytest-mock[${PYTHON_USEDEP}]
65 + sys-apps/which
66 + || (
67 + x11-misc/xclip
68 + x11-misc/xsel
69 + )
70 + )
71 +"
72 +
73 +distutils_enable_tests pytest
74 +
75 +src_test() {
76 + # tests rely on very specific text wrapping...
77 + local -x COLUMNS=80
78 + virtx distutils-r1_src_test
79 +}