From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1411457-garchives=archives.gentoo.org@lists.gentoo.org> 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 03DD1158094 for <garchives@archives.gentoo.org>; Fri, 24 Jun 2022 05:16:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0F5C1E088B; Fri, 24 Jun 2022 05:16: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 EA722E088B for <gentoo-commits@lists.gentoo.org>; Fri, 24 Jun 2022 05:16:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 13D31341228 for <gentoo-commits@lists.gentoo.org>; Fri, 24 Jun 2022 05:16:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3F22D51C for <gentoo-commits@lists.gentoo.org>; Fri, 24 Jun 2022 05:16:34 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> 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" <mgorny@gentoo.org> Message-ID: <1656047789.429c9f746ef78716fc8805a87f06ec78828149b7.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uvicorn/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/uvicorn/uvicorn-0.18.1.ebuild X-VCS-Directories: dev-python/uvicorn/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 429c9f746ef78716fc8805a87f06ec78828149b7 X-VCS-Branch: master Date: Fri, 24 Jun 2022 05:16:34 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9e47f50a-d50a-4c20-bfdc-b3fbf27a6d93 X-Archives-Hash: 617c513222ddcd8378bce775fbb0f64d commit: 429c9f746ef78716fc8805a87f06ec78828149b7 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Jun 24 05:10:06 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Jun 24 05:16:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=429c9f74 dev-python/uvicorn: Skip test using watchfiles conditionally Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/uvicorn/uvicorn-0.18.1.ebuild | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/dev-python/uvicorn/uvicorn-0.18.1.ebuild b/dev-python/uvicorn/uvicorn-0.18.1.ebuild index 3c0926979406..de246a78f9d4 100644 --- a/dev-python/uvicorn/uvicorn-0.18.1.ebuild +++ b/dev-python/uvicorn/uvicorn-0.18.1.ebuild @@ -37,18 +37,25 @@ BDEPEND=" distutils_enable_tests pytest -EPYTEST_DESELECT=( - # too long path for unix socket - tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers - # need unpackaged httptools - "tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[httptools]" - tests/protocols/test_http.py::test_fragmentation -) - -EPYTEST_IGNORE=( - # needs watchfiles, which in turn needs maturin, which needs rust - tests/supervisors/test_reload.py -) +python_test() { + local EPYTEST_DESELECT=( + # too long path for unix socket + tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers + # need unpackaged httptools + "tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[httptools]" + tests/protocols/test_http.py::test_fragmentation + ) + + local EPYTEST_IGNORE=() + # love from Rust world + if ! has_version "dev-python/watchfiles[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + tests/supervisors/test_reload.py + ) + fi + + epytest +} pkg_postinst() { optfeature "auto reload on file changes" dev-python/watchfiles