dev-python/aioresponses: bump EAPI, enable tests with test_network

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2021-06-29 12:41:38 +03:00
parent e30ff8998c
commit de1f5b9a6a
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -1,8 +1,9 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
# 29.6.2021: 3.10 blocked by aiohttps and pbr
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
@ -14,26 +15,30 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
# Tests hard depend on internet access
RESTRICT="test"
#RESTRICT="!test? ( test )"
# All tests require internet access
PROPERTIES="test_network"
RESTRICT="
test
!test? ( test )
"
RDEPEND="
dev-python/aiohttp[${PYTHON_USEDEP}]
"
#DEPEND="
# test? (
# ${RDEPEND}
# dev-python/ddt[${PYTHON_USEDEP}]
# dev-python/pytest-cov[${PYTHON_USEDEP}]
# )
#"
DEPEND="
test? (
${RDEPEND}
dev-python/ddt[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
)
"
BDEPEND="
dev-python/pbr[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx )
"
#distutils_enable_tests pytest
distutils_enable_tests pytest
python_compile_all() {
use doc && emake -C docs -j1 html