1 |
commit: 18f36f256af5771a53d7d07d4d84939e0e64fbaf |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 7 18:15:30 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 27 11:31:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18f36f25 |
7 |
|
8 |
dev-python/neovim-python-client: add python3_6, enable tests |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/4266 |
11 |
|
12 |
.../neovim-python-client-0.1.13.ebuild | 18 +++++++++++++++--- |
13 |
1 file changed, 15 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/neovim-python-client/neovim-python-client-0.1.13.ebuild b/dev-python/neovim-python-client/neovim-python-client-0.1.13.ebuild |
16 |
index 5a547eb581e..72d1f13ef3f 100644 |
17 |
--- a/dev-python/neovim-python-client/neovim-python-client-0.1.13.ebuild |
18 |
+++ b/dev-python/neovim-python-client/neovim-python-client-0.1.13.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=6 |
22 |
|
23 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
24 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
@@ -14,16 +14,28 @@ SRC_URI="https://github.com/neovim/python-client/archive/${PV}.tar.gz -> ${P}.ta |
29 |
LICENSE="Apache-2.0" |
30 |
SLOT="0" |
31 |
KEYWORDS="~amd64" |
32 |
+IUSE="test" |
33 |
|
34 |
-DEPEND=" |
35 |
+COMMON_DEPEND=" |
36 |
>=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}] |
37 |
virtual/python-greenlet[${PYTHON_USEDEP}] |
38 |
$(python_gen_cond_dep 'dev-python/trollius[${PYTHON_USEDEP}]' python2_7) |
39 |
" |
40 |
|
41 |
RDEPEND=" |
42 |
- ${DEPEND} |
43 |
+ ${COMMON_DEPEND} |
44 |
>=app-editors/neovim-0.1.6 |
45 |
" |
46 |
+DEPEND=" |
47 |
+ ${COMMON_DEPEND} |
48 |
+ test? ( |
49 |
+ ${RDEPEND} |
50 |
+ dev-python/nose[${PYTHON_USEDEP}] |
51 |
+ ) |
52 |
+" |
53 |
|
54 |
S="${WORKDIR}/python-client-${PV}" |
55 |
+ |
56 |
+python_test() { |
57 |
+ nosetests -d -v || die |
58 |
+} |