diff options
author | 2023-10-24 17:37:27 +0200 | |
---|---|---|
committer | 2023-10-24 17:37:27 +0200 | |
commit | 9a3f899187e7265eb7a94aa73083b17b81ee93e3 (patch) | |
tree | 37bd4b90f3c0f0cb72569a910da570456125a398 /dev-python/python-json-logger | |
parent | dev-python/pytest-tornado: PEP517, py3.12 (diff) | |
download | gentoo-9a3f899187e7265eb7a94aa73083b17b81ee93e3.tar.gz gentoo-9a3f899187e7265eb7a94aa73083b17b81ee93e3.tar.bz2 gentoo-9a3f899187e7265eb7a94aa73083b17b81ee93e3.zip |
dev-python/python-json-logger: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-json-logger')
-rw-r--r-- | dev-python/python-json-logger/python-json-logger-2.0.7.ebuild | 20 |
1 files 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 +} |