commit: 9a3f899187e7265eb7a94aa73083b17b81ee93e3
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 24 15:37:27 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Oct 24 15:37:27 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a3f8991
dev-python/python-json-logger: Enable py3.12
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../python-json-logger-2.0.7.ebuild | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/dev-python/python-json-logger/python-json-logger-2.0.7.ebuild
b/dev-python/python-json-logger/python-json-logger-2.0.7.ebuild
index 119b3176a15e..372c81c27b8d 100644
--- a/dev-python/python-json-logger/python-json-logger-2.0.7.ebuild
+++ b/dev-python/python-json-logger/python-json-logger-2.0.7.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
inherit distutils-r1 pypi
@@ -19,4 +19,20 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc
x86"
-distutils_enable_tests unittest
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+ case ${EPYTHON} in
+ python3.12)
+ EPYTEST_DESELECT+=(
+
tests/test_jsonlogger.py::TestJsonLogger::test_custom_object_serialization
+
tests/test_jsonlogger.py::TestJsonLogger::test_percentage_format
+
tests/test_jsonlogger.py::TestJsonLogger::test_rename_reserved_attrs
+ )
+ ;;
+ esac
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}