diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-05-17 21:37:49 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-17 22:51:11 +0200 |
commit | ffdd524ffd84793527e5e723026b35ce8f30310c (patch) | |
tree | d4985591681445aa5ce3ffd833ab6e80f9a3fbbb /dev-python/embedly | |
parent | dev-python/embedly: Fix dependencies (diff) | |
download | gentoo-ffdd524ffd84793527e5e723026b35ce8f30310c.tar.gz gentoo-ffdd524ffd84793527e5e723026b35ce8f30310c.tar.bz2 gentoo-ffdd524ffd84793527e5e723026b35ce8f30310c.zip |
dev-python/embedly: Add test running code
Diffstat (limited to 'dev-python/embedly')
-rw-r--r-- | dev-python/embedly/embedly-0.5.0-r1.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-python/embedly/embedly-0.5.0-r1.ebuild b/dev-python/embedly/embedly-0.5.0-r1.ebuild index e26065a3f353..23a3bd163bba 100644 --- a/dev-python/embedly/embedly-0.5.0-r1.ebuild +++ b/dev-python/embedly/embedly-0.5.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -16,9 +16,17 @@ SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 x86" +IUSE="test" RDEPEND="dev-python/httplib2[${PYTHON_USEDEP}]" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) )" S="${WORKDIR}/${MY_P}" + # Testsuite relies upon connection to various sites on the net +RESTRICT="test" + +python_test() { + esetup.py test +} |