summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAric Belsito <lluixhi@gmail.com>2017-05-07 11:15:30 -0700
committerMichał Górny <mgorny@gentoo.org>2017-05-27 13:31:33 +0200
commit18f36f256af5771a53d7d07d4d84939e0e64fbaf (patch)
tree767bccec5871e3ea365a2cda439eccfe16663494 /dev-python/neovim-python-client
parentgames-puzzle/sgt-puzzles: Bump to 20170514 (diff)
downloadgentoo-18f36f256af5771a53d7d07d4d84939e0e64fbaf.tar.gz
gentoo-18f36f256af5771a53d7d07d4d84939e0e64fbaf.tar.bz2
gentoo-18f36f256af5771a53d7d07d4d84939e0e64fbaf.zip
dev-python/neovim-python-client: add python3_6, enable tests
Closes: https://github.com/gentoo/gentoo/pull/4266
Diffstat (limited to 'dev-python/neovim-python-client')
-rw-r--r--dev-python/neovim-python-client/neovim-python-client-0.1.13.ebuild18
1 files changed, 15 insertions, 3 deletions
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
index 5a547eb581e0..72d1f13ef3f1 100644
--- 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
@@ -3,7 +3,7 @@
EAPI=6
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
inherit distutils-r1
@@ -14,16 +14,28 @@ SRC_URI="https://github.com/neovim/python-client/archive/${PV}.tar.gz -> ${P}.ta
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="test"
-DEPEND="
+COMMON_DEPEND="
>=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}]
virtual/python-greenlet[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/trollius[${PYTHON_USEDEP}]' python2_7)
"
RDEPEND="
- ${DEPEND}
+ ${COMMON_DEPEND}
>=app-editors/neovim-0.1.6
"
+DEPEND="
+ ${COMMON_DEPEND}
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ )
+"
S="${WORKDIR}/python-client-${PV}"
+
+python_test() {
+ nosetests -d -v || die
+}