From 2a7569cf9bce403b06dddb3265151e583456a574 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 25 Mar 2020 08:10:53 +0100 Subject: [PATCH] dev-python/urllib3: Disable tests for py2 to unblock tornado MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/urllib3/urllib3-1.24.2.ebuild | 17 ++++++++++++----- dev-python/urllib3/urllib3-1.25.7.ebuild | 23 ++++++++++++++--------- dev-python/urllib3/urllib3-1.25.8.ebuild | 23 ++++++++++++++--------- 3 files changed, 40 insertions(+), 23 deletions(-) diff --git a/dev-python/urllib3/urllib3-1.24.2.ebuild b/dev-python/urllib3/urllib3-1.24.2.ebuild index 744dfd74e26d..7be6c90f2f82 100644 --- a/dev-python/urllib3/urllib3-1.24.2.ebuild +++ b/dev-python/urllib3/urllib3-1.24.2.ebuild @@ -32,10 +32,12 @@ RDEPEND=" DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] test? ( - ${RDEPEND} - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - >=www-servers/tornado-4.2.1[$(python_gen_usedep python{2_7,3_{5,6,7}})] + $(python_gen_cond_dep " + ${RDEPEND} + dev-python/mock[\${PYTHON_USEDEP}] + dev-python/pytest[\${PYTHON_USEDEP}] + >=www-servers/tornado-4.2.1[\${PYTHON_USEDEP}] + " 'python3*') ) " @@ -53,7 +55,12 @@ python_prepare_all() { python_test() { # FIXME: get tornado ported case ${EPYTHON} in - python2*|python3.[567]) + 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 diff --git a/dev-python/urllib3/urllib3-1.25.7.ebuild b/dev-python/urllib3/urllib3-1.25.7.ebuild index de5188583cf7..7dec43ea8950 100644 --- a/dev-python/urllib3/urllib3-1.25.7.ebuild +++ b/dev-python/urllib3/urllib3-1.25.7.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{2_7,3_{5,6,7}}) + $(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*') ) " @@ -72,7 +72,12 @@ python_prepare_all() { python_test() { # FIXME: get tornado ported case ${EPYTHON} in - python2*|python3.[567]) + 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 diff --git a/dev-python/urllib3/urllib3-1.25.8.ebuild b/dev-python/urllib3/urllib3-1.25.8.ebuild index e21205e47f94..5ac937b017b5 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 -- 2.26.2