dev-lang/python-exec: Sync with Gentoo

It's from Gentoo commit 1c9427b0676b68f932a04dd88f48ca276433f7aa.
This commit is contained in:
Flatcar Buildbot 2024-04-22 07:11:01 +00:00 committed by Krzesimir Nowak
parent 9ca13112a0
commit efa045ef86

View File

@ -1,9 +1,10 @@
# Copyright 1999-2023 Gentoo Authors # Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=8
PYTHON_COMPAT=( python3_{10..12} pypy3 )
PYTHON_COMPAT=( python3_{9..11} pypy3 )
inherit python-any-r1 inherit python-any-r1
DESCRIPTION="Python script wrapper" DESCRIPTION="Python script wrapper"
@ -19,11 +20,13 @@ RESTRICT="!test? ( test )"
RDEPEND=" RDEPEND="
dev-lang/python-exec-conf dev-lang/python-exec-conf
!<=dev-lang/python-2.7.18-r3:2.7" !<=dev-lang/python-2.7.18-r3:2.7
"
BDEPEND=" BDEPEND="
test? ( test? (
$(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]') $(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]')
)" )
"
python_check_deps() { python_check_deps() {
python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
@ -50,6 +53,11 @@ src_configure() {
econf "${myconf[@]}" econf "${myconf[@]}"
} }
src_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
default
}
src_install() { src_install() {
default default