summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-25 08:10:53 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-25 10:39:47 +0100
commit2a7569cf9bce403b06dddb3265151e583456a574 (patch)
tree163cbaa3fb7ed15c7e4b618010364274440f5b54 /dev-python/urllib3/urllib3-1.25.8.ebuild
parentdev-python/pyzmq: Remove py2 (diff)
downloadgentoo-2a7569cf9bce403b06dddb3265151e583456a574.tar.gz
gentoo-2a7569cf9bce403b06dddb3265151e583456a574.tar.bz2
gentoo-2a7569cf9bce403b06dddb3265151e583456a574.zip
dev-python/urllib3: Disable tests for py2 to unblock tornado
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/urllib3/urllib3-1.25.8.ebuild')
-rw-r--r--dev-python/urllib3/urllib3-1.25.8.ebuild23
1 files changed, 14 insertions, 9 deletions
diff --git a/dev-python/urllib3/urllib3-1.25.8.ebuild b/dev-python/urllib3/urllib3-1.25.8.ebuild
index e21205e47f9..5ac937b017b 100644
--- a/dev-python/urllib3/urllib3-1.25.8.ebuild
+++ b/dev-python/urllib3/urllib3-1.25.8.ebuild
@@ -33,14 +33,14 @@ RDEPEND="
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
- ${RDEPEND}
- dev-python/brotlipy[${PYTHON_USEDEP}]
- dev-python/mock[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
- >=dev-python/trustme-0.5.3[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- >=www-servers/tornado-4.2.1[${PYTHON_USEDEP}]
- ' 'python*')
+ $(python_gen_cond_dep "
+ ${RDEPEND}
+ dev-python/brotlipy[\${PYTHON_USEDEP}]
+ dev-python/mock[\${PYTHON_USEDEP}]
+ dev-python/pytest[\${PYTHON_USEDEP}]
+ >=dev-python/trustme-0.5.3[\${PYTHON_USEDEP}]
+ >=www-servers/tornado-4.2.1[\${PYTHON_USEDEP}]
+ " 'python3*')
)
"
@@ -73,7 +73,12 @@ python_test() {
local -x CI=1
# FIXME: get tornado ported
case ${EPYTHON} in
- python*)
+ python2*)
+ ewarn "Tests are being skipped for Python 2 in order to reduce the number"
+ ewarn "of circular dependencies for Python 2 removal. Please test"
+ ewarn "manually in a virtualenv."
+ ;;
+ python3*)
pytest -vv || die "Tests fail with ${EPYTHON}"
;;
esac