commit: 5fb51e0be28fc8fd509b9b9e82071a1c8acfc411
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 19 16:49:50 2025 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Jan 19 16:51:58 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fb51e0b
app-portage/metagen: Add python3_13 to 0.7.4 and 9999
The tests pass. lxml doesn't have python3_13t yet.
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
app-portage/metagen/metagen-0.7.4.ebuild | 4 ++--
app-portage/metagen/metagen-9999.ebuild | 11 ++++-------
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/app-portage/metagen/metagen-0.7.4.ebuild
b/app-portage/metagen/metagen-0.7.4.ebuild
index 3a735ec891c4..d1b37a4c8a24 100644
--- a/app-portage/metagen/metagen-0.7.4.ebuild
+++ b/app-portage/metagen/metagen-0.7.4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..12} )
+PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
diff --git a/app-portage/metagen/metagen-9999.ebuild
b/app-portage/metagen/metagen-9999.ebuild
index af57fda6c7ea..a77c916e9302 100644
--- a/app-portage/metagen/metagen-9999.ebuild
+++ b/app-portage/metagen/metagen-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..12} )
+PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 git-r3
@@ -15,11 +15,12 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
-IUSE=""
DEPEND="dev-python/lxml[${PYTHON_USEDEP}]
sys-apps/portage[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
+distutils_enable_tests pytest
+
python_install_all() {
distutils-r1_python_install_all
doman docs/metagen.1
@@ -28,7 +29,3 @@ python_install_all() {
mv "${ED}"/usr/share/doc/metagen-{*.*.*/*,${PV}/} || die
rmdir "${ED}"/usr/share/doc/metagen-*.*.*/ || die
}
-
-python_test() {
- "${PYTHON}" -c "from metagen import metagenerator;
metagenerator.do_tests()" || die
-}