From 57c64ae2db37d94367afa7e953d468a9f127748d Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 26 Nov 2021 14:25:12 +0100 Subject: dev-python/cheroot: Make SSL-related test-dep non-obligatory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore SSL tests if their dependencies (pyopenssl & trustme) are not available. This is in preparation to them losing keywords on architectures not supported by Rust. Signed-off-by: Michał Górny --- dev-python/cheroot/cheroot-8.5.2.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'dev-python/cheroot') diff --git a/dev-python/cheroot/cheroot-8.5.2.ebuild b/dev-python/cheroot/cheroot-8.5.2.ebuild index d13d98546051..4d7c7d071b76 100644 --- a/dev-python/cheroot/cheroot-8.5.2.ebuild +++ b/dev-python/cheroot/cheroot-8.5.2.ebuild @@ -27,9 +27,9 @@ BDEPEND=" dev-python/jaraco-context[${PYTHON_USEDEP}] dev-python/jaraco-text[${PYTHON_USEDEP}] dev-python/portend[${PYTHON_USEDEP}] + dev-python/pyopenssl[${PYTHON_USEDEP}] dev-python/pytest-forked[${PYTHON_USEDEP}] >=dev-python/pytest-mock-1.11.0[${PYTHON_USEDEP}] - dev-python/pyopenssl[${PYTHON_USEDEP}] dev-python/requests-toolbelt[${PYTHON_USEDEP}] dev-python/requests-unixsocket[${PYTHON_USEDEP}] dev-python/trustme[${PYTHON_USEDEP}] @@ -55,6 +55,15 @@ python_prepare_all() { } python_test() { + local EPYTEST_IGNORE=() + if ! has_version "dev-python/pyopenssl[${PYTHON_USEDEP}]" || + ! has_version "dev-python/trustme[${PYTHON_USEDEP}]" + then + EPYTEST_IGNORE+=( + lib/cheroot/test/test_ssl.py + ) + fi + cd "${BUILD_DIR}" || die epytest } -- cgit v1.2.3-65-gdbad