dev-util/pkgcheck: enable py3.12

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-05-27 11:08:51 +01:00
parent 1271a7c796
commit a0eece665f
2 changed files with 28 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
PYTHON_COMPAT=( python3_{10..12} )
inherit elisp-common distutils-r1 optfeature
if [[ ${PV} == *9999 ]] ; then
@@ -50,7 +50,9 @@ BDEPEND="${RDEPEND}
dev-python/wheel
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/requests[${PYTHON_USEDEP}]
' python3_{10..11} )
dev-vcs/git
)
"
@@ -71,6 +73,16 @@ src_compile() {
fi
}
python_test() {
if ! has_version -b "dev-python/requests[${PYTHON_USEDEP}" ; then
EPYTEST_DESELECT=(
tests/checks/test_all.py::TestNetworkCheck::test_network_enabled
)
fi
epytest
}
python_install_all() {
local DOCS=( NEWS.rst )
[[ ${PV} == *9999 ]] || doman man/*

View File

@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
PYTHON_COMPAT=( python3_{10..12} )
inherit elisp-common distutils-r1 optfeature
if [[ ${PV} == *9999 ]] ; then
@@ -50,7 +50,9 @@ BDEPEND="${RDEPEND}
dev-python/wheel
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/requests[${PYTHON_USEDEP}]
' python3_{10..11} )
dev-vcs/git
)
"
@@ -71,6 +73,16 @@ src_compile() {
fi
}
python_test() {
if ! has_version -b "dev-python/requests[${PYTHON_USEDEP}" ; then
EPYTEST_DESELECT=(
tests/checks/test_all.py::TestNetworkCheck::test_network_enabled
)
fi
epytest
}
python_install_all() {
local DOCS=( NEWS.rst )
[[ ${PV} == *9999 ]] || doman man/*