dev-python/aiohttp-cors: Enable the test suites
authorMichał Górny <mgorny@gentoo.org>
Thu, 20 Apr 2017 13:05:06 +0000 (15:05 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 20 Apr 2017 13:40:55 +0000 (15:40 +0200)
dev-python/aiohttp-cors/aiohttp-cors-0.5.0.ebuild

index ac83939cdff9a638865b8c8e9cc0066f0ab32e17..82ce007da4797c7c0a21f6d77c3f584f65ca3bfc 100644 (file)
@@ -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
+}