summaryrefslogtreecommitdiff
path: root/dev-python/httpcore
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-05-15 06:58:16 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-05-15 06:58:16 +0000
commit3d4c60ab67ab34063f83de57ca650a2093caa6e5 (patch)
treeb84fb03b155aee605de7d948e52eddb76dab1143 /dev-python/httpcore
parentf4b148a17b03de6d1241e9e3706c564da5d6fb4b (diff)
downloadbaldeagleos-repo-3d4c60ab67ab34063f83de57ca650a2093caa6e5.tar.gz
baldeagleos-repo-3d4c60ab67ab34063f83de57ca650a2093caa6e5.tar.xz
baldeagleos-repo-3d4c60ab67ab34063f83de57ca650a2093caa6e5.zip
Adding metadata
Diffstat (limited to 'dev-python/httpcore')
-rw-r--r--dev-python/httpcore/httpcore-1.0.5.ebuild24
1 files changed, 22 insertions, 2 deletions
diff --git a/dev-python/httpcore/httpcore-1.0.5.ebuild b/dev-python/httpcore/httpcore-1.0.5.ebuild
index 1ef1a9b8d7ac..ece9e8e34a89 100644
--- a/dev-python/httpcore/httpcore-1.0.5.ebuild
+++ b/dev-python/httpcore/httpcore-1.0.5.ebuild
@@ -35,15 +35,35 @@ BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-httpbin[${PYTHON_USEDEP}]
- dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/socksio[${PYTHON_USEDEP}]
- dev-python/trio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/pytest-trio[${PYTHON_USEDEP}]
+ dev-python/trio[${PYTHON_USEDEP}]
+ ' 3.{10..12})
)
"
distutils_enable_tests pytest
+python_test() {
+ local opts=()
+ local EPYTEST_IGNORE=()
+
+ if ! has_version "dev-python/trio[${PYTHON_USEDEP}]"; then
+ opts+=( -k "not trio" )
+ EPYTEST_IGNORE+=(
+ tests/_async/test_connection_pool.py
+ )
+ fi
+
+ if ! has_version "dev-python/pytest-trio[${PYTHON_USEDEP}]"; then
+ opts+=( -m "not trio" -o addopts= )
+ fi
+
+ epytest "${opts[@]}"
+}
+
pkg_postinst() {
optfeature "SOCKS support" dev-python/socksio
}