commit: 57c64ae2db37d94367afa7e953d468a9f127748d
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 26 13:25:12 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 27 10:27:26 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57c64ae2
dev-python/cheroot: Make SSL-related test-dep non-obligatory
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 <mgorny <AT> gentoo.org>
dev-python/cheroot/cheroot-8.5.2.ebuild | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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
}