mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/httpcore: Enable py3.13
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=hatchling
|
DISTUTILS_USE_PEP517=hatchling
|
||||||
PYTHON_COMPAT=( pypy3 python3_{10..12} )
|
PYTHON_COMPAT=( pypy3 python3_{10..13} )
|
||||||
|
|
||||||
inherit distutils-r1 optfeature
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
@@ -35,15 +35,35 @@ BDEPEND="
|
|||||||
test? (
|
test? (
|
||||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||||
dev-python/pytest-httpbin[${PYTHON_USEDEP}]
|
dev-python/pytest-httpbin[${PYTHON_USEDEP}]
|
||||||
dev-python/pytest-trio[${PYTHON_USEDEP}]
|
|
||||||
dev-python/socksio[${PYTHON_USEDEP}]
|
dev-python/socksio[${PYTHON_USEDEP}]
|
||||||
dev-python/trio[${PYTHON_USEDEP}]
|
|
||||||
dev-python/trustme[${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
|
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() {
|
pkg_postinst() {
|
||||||
optfeature "SOCKS support" dev-python/socksio
|
optfeature "SOCKS support" dev-python/socksio
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user