From f305a79895a72ae46d9586f22e8136a0389b922d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 20 Apr 2017 15:05:06 +0200 Subject: [PATCH] dev-python/aiohttp-cors: Enable the test suites --- .../aiohttp-cors/aiohttp-cors-0.5.0.ebuild | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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 +} -- 2.26.2