Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cliff/
Date: Sat, 01 Sep 2018 19:24:16
Message-Id: 1535829835.b0d371d790bab246e78fda2148e07fc6c60ec461.prometheanfire@gentoo
1 commit: b0d371d790bab246e78fda2148e07fc6c60ec461
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 1 19:23:38 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 1 19:23:55 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0d371d7
7
8 dev-python/cliff: fix tests
9
10 Fixes: https://bugs.gentoo.org/664976
11 Package-Manager: Portage-2.3.48, Repoman-2.3.10
12
13 dev-python/cliff/cliff-2.12.0-r1.ebuild | 64 +++++++++++++++++++++++++++++++++
14 1 file changed, 64 insertions(+)
15
16 diff --git a/dev-python/cliff/cliff-2.12.0-r1.ebuild b/dev-python/cliff/cliff-2.12.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..d5fdba0dfe3
19 --- /dev/null
20 +++ b/dev-python/cliff/cliff-2.12.0-r1.ebuild
21 @@ -0,0 +1,64 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
27 +VIRTUALX_REQUIRED="test"
28 +
29 +inherit distutils-r1 virtualx
30 +
31 +DESCRIPTION="Command Line Interface Formulation Framework"
32 +HOMEPAGE="https://github.com/dreamhost/cliff"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="Apache-2.0"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm64 ~hppa ~mips ~s390 ~x86 ~amd64-linux ~x86-linux"
38 +IUSE="doc test"
39 +
40 +CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
41 + !~dev-python/pbr-2.1.0"
42 +DEPEND="
43 + dev-python/setuptools[${PYTHON_USEDEP}]
44 + ${CDEPEND}
45 + test? (
46 + dev-python/nose[${PYTHON_USEDEP}]
47 + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
48 + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
49 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
50 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
51 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
52 + >=dev-python/coverage-4.0[${PYTHON_USEDEP}]
53 + !~dev-python/coverage-4.4[${PYTHON_USEDEP}]
54 + )
55 + doc? (
56 + >=dev-python/sphinx-1.6.2[${PYTHON_USEDEP}]
57 + )
58 +"
59 +# source files stipulate <sphinx-1.3 however build effected perfectly with sphinx-1.3.1
60 +RDEPEND="
61 + ${CDEPEND}
62 + >=dev-python/cmd2-0.6.7[${PYTHON_USEDEP}]
63 + >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}]
64 + <dev-python/prettytable-0.8[${PYTHON_USEDEP}]
65 + >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
66 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
67 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
68 + >=dev-python/unicodecsv-0.8.0[${PYTHON_USEDEP}]
69 + >=dev-python/pyyaml-3.10.0[${PYTHON_USEDEP}]
70 + "
71 +
72 +python_compile() {
73 + use doc && esetup.py build_sphinx
74 +}
75 +
76 +python_test() {
77 + stestr init || die "stestr init failed under ${EPYTHON}"
78 + # needs outside access, so blacklist the test
79 + virtx stestr run --black-regex cliff.tests.test_app.TestIO.test_writer_encoding || die "stestr run failed under ${EPYTHON}"
80 +}
81 +
82 +python_install_all() {
83 + use doc && local HTML_DOCS=( doc/build/html/. )
84 + distutils-r1_python_install_all
85 +}