From efa045ef86e1a35e3bd5b16eb9419091505e256e Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 22 Apr 2024 07:11:01 +0000 Subject: [PATCH] dev-lang/python-exec: Sync with Gentoo It's from Gentoo commit 1c9427b0676b68f932a04dd88f48ca276433f7aa. --- .../python-exec/python-exec-2.4.10.ebuild | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/dev-lang/python-exec/python-exec-2.4.10.ebuild b/sdk_container/src/third_party/portage-stable/dev-lang/python-exec/python-exec-2.4.10.ebuild index 05556b1b0d..85085af143 100644 --- a/sdk_container/src/third_party/portage-stable/dev-lang/python-exec/python-exec-2.4.10.ebuild +++ b/sdk_container/src/third_party/portage-stable/dev-lang/python-exec/python-exec-2.4.10.ebuild @@ -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 -EAPI=7 +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} pypy3 ) -PYTHON_COMPAT=( python3_{9..11} pypy3 ) inherit python-any-r1 DESCRIPTION="Python script wrapper" @@ -19,11 +20,13 @@ RESTRICT="!test? ( test )" RDEPEND=" dev-lang/python-exec-conf - !<=dev-lang/python-2.7.18-r3:2.7" + !<=dev-lang/python-2.7.18-r3:2.7 +" BDEPEND=" test? ( $(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]') - )" + ) +" python_check_deps() { python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" @@ -50,6 +53,11 @@ src_configure() { econf "${myconf[@]}" } +src_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + default +} + src_install() { default