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 DEAD5158086 for ; Sat, 27 Nov 2021 13:46:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 150DE2BC00D; Sat, 27 Nov 2021 13:46:27 +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 EE4892BC015 for ; Sat, 27 Nov 2021 13:46:26 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C922F342E80 for ; Sat, 27 Nov 2021 13:46:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77DA31EA for ; Sat, 27 Nov 2021 13:46:24 +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: <1638020781.0cf8cd82a63f045cf695be8e0494527ed27c27fd.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/werkzeug/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/werkzeug/werkzeug-2.0.2.ebuild X-VCS-Directories: dev-python/werkzeug/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0cf8cd82a63f045cf695be8e0494527ed27c27fd X-VCS-Branch: master Date: Sat, 27 Nov 2021 13:46:24 +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: 3b59bdaf-8f3e-49bb-ac83-f06e46885479 X-Archives-Hash: f3df99b7e4e01591f0073ae7bc1f4460 commit: 0cf8cd82a63f045cf695be8e0494527ed27c27fd Author: Michał Górny gentoo org> AuthorDate: Sat Nov 27 13:29:16 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Nov 27 13:46:21 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cf8cd82 dev-python/werkzeug: Support testing without cryptography Skip tests requiring cryptography when it is unavailable. This prepares werkzeug-2 for removal of keywords due to Rust. werkzeug-1 is fine since it skips tests requiring cryptography gracefully. Signed-off-by: Michał Górny gentoo.org> dev-python/werkzeug/werkzeug-2.0.2.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-python/werkzeug/werkzeug-2.0.2.ebuild b/dev-python/werkzeug/werkzeug-2.0.2.ebuild index ce9f8fe88f1a..6d3f35c97c9e 100644 --- a/dev-python/werkzeug/werkzeug-2.0.2.ebuild +++ b/dev-python/werkzeug/werkzeug-2.0.2.ebuild @@ -35,6 +35,15 @@ BDEPEND=" distutils_enable_tests pytest python_test() { + local EPYTEST_DESELECT=() + if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + "tests/test_serving.py::test_server[https]" + tests/test_serving.py::test_ssl_dev_cert + tests/test_serving.py::test_ssl_object + ) + fi + distutils_install_for_testing --via-venv # the default portage tempdir is too long for AF_UNIX sockets