summaryrefslogtreecommitdiff
path: root/dev-python/pytest-asyncio
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-09-30 19:07:39 -0500
committerCrucible <crucible@localhost>2026-09-30 19:07:39 -0500
commit9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784 (patch)
tree5f38413a80b9e584e9f6c579b013e8abd6ae2702 /dev-python/pytest-asyncio
parent9c4e6e8fed8999df35813182c3b9577d541394e0 (diff)
downloadsrcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.tar.gz
srcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.tar.xz
srcux-9ac03f0d5a1a2f7a9a0656fe7cd27ef2588da784.zip
Publish srcux candidate 0000000528-20260930-190542
Diffstat (limited to 'dev-python/pytest-asyncio')
-rw-r--r--dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild19
1 files changed, 18 insertions, 1 deletions
diff --git a/dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild b/dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild
index 9c7d19d1db4b..9f39414cd24c 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-1.4.0.ebuild
@@ -5,6 +5,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-asyncio
+PYTHON_FULLY_TESTED=( python3_{12..15} python3_{14..15}t )
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1 pypi
@@ -29,9 +30,14 @@ RDEPEND="
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ ' "${PYTHON_FULLY_TESTED[@]}")
+ )
"
-EPYTEST_PLUGINS=( hypothesis "${PN}" )
+EPYTEST_PLUGINS=( "${PN}" )
EPYTEST_PLUGIN_LOAD_VIA_ENV=1
EPYTEST_XDIST=1
distutils_enable_tests pytest
@@ -54,3 +60,14 @@ src_prepare() {
# remove pins
sed -i -e 's:,<[0-9.]*::' pyproject.toml || die
}
+
+python_test() {
+ local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" )
+ local EPYTEST_IGNORE=()
+ if has_version "dev-python/hypothesis[${PYTHON_USEDEP}]"; then
+ EPYTEST_PLUGINS+=( hypothesis )
+ else
+ EPYTEST_IGNORE+=( tests/hypothesis/ )
+ fi
+ epytest
+}