summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-07 05:11:57 +0000
committerSam James <sam@gentoo.org>2022-02-07 05:11:57 +0000
commit02ef24811bd9b2709276593cf32de1488244cee7 (patch)
tree35caf21c4017b84b37317cb8fb15da32f5bd3b2d /dev-python/anyio
parentgames-sports/trigger: update EAPI 6 -> 8, fix joystick dependency (diff)
downloadgentoo-02ef24811bd9b2709276593cf32de1488244cee7.tar.gz
gentoo-02ef24811bd9b2709276593cf32de1488244cee7.tar.bz2
gentoo-02ef24811bd9b2709276593cf32de1488244cee7.zip
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@gentoo.org>
Diffstat (limited to 'dev-python/anyio')
-rw-r--r--dev-python/anyio/anyio-3.5.0.ebuild5
1 files 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}] )
)
"