Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/uvicorn/
Date: Fri, 24 Jun 2022 05:16:39
Message-Id: 1656047789.429c9f746ef78716fc8805a87f06ec78828149b7.mgorny@gentoo
1 commit: 429c9f746ef78716fc8805a87f06ec78828149b7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 05:10:06 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 05:16:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=429c9f74
7
8 dev-python/uvicorn: Skip test using watchfiles conditionally
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/uvicorn/uvicorn-0.18.1.ebuild | 31 +++++++++++++++++++------------
13 1 file changed, 19 insertions(+), 12 deletions(-)
14
15 diff --git a/dev-python/uvicorn/uvicorn-0.18.1.ebuild b/dev-python/uvicorn/uvicorn-0.18.1.ebuild
16 index 3c0926979406..de246a78f9d4 100644
17 --- a/dev-python/uvicorn/uvicorn-0.18.1.ebuild
18 +++ b/dev-python/uvicorn/uvicorn-0.18.1.ebuild
19 @@ -37,18 +37,25 @@ BDEPEND="
20
21 distutils_enable_tests pytest
22
23 -EPYTEST_DESELECT=(
24 - # too long path for unix socket
25 - tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers
26 - # need unpackaged httptools
27 - "tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[httptools]"
28 - tests/protocols/test_http.py::test_fragmentation
29 -)
30 -
31 -EPYTEST_IGNORE=(
32 - # needs watchfiles, which in turn needs maturin, which needs rust
33 - tests/supervisors/test_reload.py
34 -)
35 +python_test() {
36 + local EPYTEST_DESELECT=(
37 + # too long path for unix socket
38 + tests/test_config.py::test_bind_unix_socket_works_with_reload_or_workers
39 + # need unpackaged httptools
40 + "tests/middleware/test_logging.py::test_trace_logging_on_http_protocol[httptools]"
41 + tests/protocols/test_http.py::test_fragmentation
42 + )
43 +
44 + local EPYTEST_IGNORE=()
45 + # love from Rust world
46 + if ! has_version "dev-python/watchfiles[${PYTHON_USEDEP}]"; then
47 + EPYTEST_IGNORE+=(
48 + tests/supervisors/test_reload.py
49 + )
50 + fi
51 +
52 + epytest
53 +}
54
55 pkg_postinst() {
56 optfeature "auto reload on file changes" dev-python/watchfiles