From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 53782158086 for ; Sat, 27 Nov 2021 10:27:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B96FDE0866; Sat, 27 Nov 2021 10:27:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0AA16E085E for ; Sat, 27 Nov 2021 10:27:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E0BC2342C09 for ; Sat, 27 Nov 2021 10:27:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 633EB1E6 for ; Sat, 27 Nov 2021 10:27:35 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1638008846.57c64ae2db37d94367afa7e953d468a9f127748d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cheroot/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cheroot/cheroot-8.5.2.ebuild X-VCS-Directories: dev-python/cheroot/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 57c64ae2db37d94367afa7e953d468a9f127748d X-VCS-Branch: master Date: Sat, 27 Nov 2021 10:27:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fd96b7db-8a4c-4d7b-a3d1-ea4795a8b6c9 X-Archives-Hash: 2162fd9700baeb423ae98969431d70fa commit: 57c64ae2db37d94367afa7e953d468a9f127748d Author: Michał Górny gentoo org> AuthorDate: Fri Nov 26 13:25:12 2021 +0000 Commit: Michał Górny gentoo 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 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 }