commit: 49a42e48492e58125b9e05ffa0faae07985bf7e3
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 9 06:50:24 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 9 06:50:41 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a42e48
dev-python/versioningit: enable py3.14 via PYTHON_FULLY_TESTED
Skip pydantic where not yet available. pydantic needs to wrangle
w/ AST so it always takes a while to port.
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-python/versioningit/versioningit-3.1.3.ebuild | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/dev-python/versioningit/versioningit-3.1.3.ebuild
b/dev-python/versioningit/versioningit-3.1.3.ebuild
index 2c468e313ac7..107d05b615db 100644
--- a/dev-python/versioningit/versioningit-3.1.3.ebuild
+++ b/dev-python/versioningit/versioningit-3.1.3.ebuild
@@ -4,7 +4,8 @@
EAPI=8
DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( pypy3_11 python3_{11..13} )
+PYTHON_FULLY_TESTED=( pypy3_11 python3_{11..13} )
+PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" python3_14 )
inherit distutils-r1 pypi
@@ -20,15 +21,14 @@ KEYWORDS="amd64 ~arm arm64 ~riscv ~x86"
RDEPEND="
>=dev-python/packaging-17.1[${PYTHON_USEDEP}]
- $(python_gen_cond_dep '
- <dev-python/tomli-3[${PYTHON_USEDEP}]
- ' 3.10)
dev-vcs/git
"
BDEPEND="
test? (
- dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/pydantic[${PYTHON_USEDEP}]
+ ' "${PYTHON_FULLY_TESTED[@]}")
)
"
@@ -40,5 +40,13 @@ EPYTEST_IGNORE=(
distutils_enable_tests pytest
python_test() {
+ if ! has "${EPYTHON/./_}" "${PYTHON_FULLY_TESTED[@]}"; then
+ EPYTEST_IGNORE+=(
+ # Needs pydantic
+ test/test_methods/test_hg.py
+ test/test_methods/test_git.py
+ )
+ fi
+
epytest -o addopts=
}