Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/anyio/
Date: Mon, 07 Feb 2022 05:13:04
Message-Id: 1644210717.02ef24811bd9b2709276593cf32de1488244cee7.sam@gentoo
1 commit: 02ef24811bd9b2709276593cf32de1488244cee7
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 7 05:11:57 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 05:11:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ef2481
7
8 dev-python/anyio: conditionalise uvloop test-dep for amd64 only
9
10 It's an optional test dependency and uvloop needs specific porting
11 to platforms. Let's only pull it in on amd64 to maximise test
12 coverage there but avoid pain elsewhere.
13
14 Bug: https://bugs.gentoo.org/831852
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 dev-python/anyio/anyio-3.5.0.ebuild | 5 +++--
18 1 file changed, 3 insertions(+), 2 deletions(-)
19
20 diff --git a/dev-python/anyio/anyio-3.5.0.ebuild b/dev-python/anyio/anyio-3.5.0.ebuild
21 index a57dd40c611b..00e0c4511a52 100644
22 --- a/dev-python/anyio/anyio-3.5.0.ebuild
23 +++ b/dev-python/anyio/anyio-3.5.0.ebuild
24 @@ -21,14 +21,15 @@ RDEPEND="
25 >=dev-python/idna-2.8[${PYTHON_USEDEP}]
26 >=dev-python/sniffio-1.1[${PYTHON_USEDEP}]
27 "
28 -
29 +# On amd64, let's get more test coverage by dragging in uvloop, but let's
30 +# not bother on other arches where uvloop may not be supported.
31 BDEPEND="
32 test? (
33 >=dev-python/hypothesis-4.0[${PYTHON_USEDEP}]
34 >=dev-python/pytest-6.2[${PYTHON_USEDEP}]
35 >=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
36 dev-python/trustme[${PYTHON_USEDEP}]
37 - >=dev-python/uvloop-0.15[${PYTHON_USEDEP}]
38 + amd64? ( >=dev-python/uvloop-0.15[${PYTHON_USEDEP}] )
39 )
40 "