From: Michał Górny Date: Thu, 20 Apr 2017 13:05:06 +0000 (+0200) Subject: dev-python/aiohttp-cors: Enable the test suites X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f305a79895a72ae46d9586f22e8136a0389b922d;p=gentoo.git dev-python/aiohttp-cors: Enable the test suites --- diff --git a/dev-python/aiohttp-cors/aiohttp-cors-0.5.0.ebuild b/dev-python/aiohttp-cors/aiohttp-cors-0.5.0.ebuild index ac83939cdff9..82ce007da479 100644 --- a/dev-python/aiohttp-cors/aiohttp-cors-0.5.0.ebuild +++ b/dev-python/aiohttp-cors/aiohttp-cors-0.5.0.ebuild @@ -15,8 +15,20 @@ EGIT_REPO_URI="https://github.com/aio-libs/aiohttp-cors" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" -RESTRICT="test" +IUSE="test" -DEPEND=">=dev-python/aiohttp-1.1.1[${PYTHON_USEDEP}] - dev-python/pip[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND=">=dev-python/aiohttp-1.1.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/typing[${PYTHON_USEDEP}]' python3_4)" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/pytest-pylint[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + dev-python/selenium[${PYTHON_USEDEP}] + )" + +python_test() { + esetup.py test +}