commit:     02ef24811bd9b2709276593cf32de1488244cee7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  7 05:11:57 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb  7 05:11:57 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ef2481

dev-python/anyio: conditionalise uvloop test-dep for amd64 only

It's an optional test dependency and uvloop needs specific porting
to platforms. Let's only pull it in on amd64 to maximise test
coverage there but avoid pain elsewhere.

Bug: https://bugs.gentoo.org/831852
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/anyio/anyio-3.5.0.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-python/anyio/anyio-3.5.0.ebuild 
b/dev-python/anyio/anyio-3.5.0.ebuild
index a57dd40c611b..00e0c4511a52 100644
--- a/dev-python/anyio/anyio-3.5.0.ebuild
+++ b/dev-python/anyio/anyio-3.5.0.ebuild
@@ -21,14 +21,15 @@ RDEPEND="
        >=dev-python/idna-2.8[${PYTHON_USEDEP}]
        >=dev-python/sniffio-1.1[${PYTHON_USEDEP}]
 "
-
+# On amd64, let's get more test coverage by dragging in uvloop, but let's
+# not bother on other arches where uvloop may not be supported.
 BDEPEND="
        test? (
                >=dev-python/hypothesis-4.0[${PYTHON_USEDEP}]
                >=dev-python/pytest-6.2[${PYTHON_USEDEP}]
                >=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
                dev-python/trustme[${PYTHON_USEDEP}]
-               >=dev-python/uvloop-0.15[${PYTHON_USEDEP}]
+               amd64? ( >=dev-python/uvloop-0.15[${PYTHON_USEDEP}] )
        )
 "
 

Reply via email to