summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-26 14:25:12 +0100
committerMichał Górny <mgorny@gentoo.org>2021-11-27 11:27:26 +0100
commit57c64ae2db37d94367afa7e953d468a9f127748d (patch)
tree6f48b108405f9ced28e784148e7794843d43a974 /dev-python/cheroot
parentdev-python/pypiserver: Support running tests without twine (diff)
downloadgentoo-57c64ae2db37d94367afa7e953d468a9f127748d.tar.gz
gentoo-57c64ae2db37d94367afa7e953d468a9f127748d.tar.bz2
gentoo-57c64ae2db37d94367afa7e953d468a9f127748d.zip
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@gentoo.org>
Diffstat (limited to 'dev-python/cheroot')
-rw-r--r--dev-python/cheroot/cheroot-8.5.2.ebuild11
1 files changed, 10 insertions, 1 deletions
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
}