commit: 0c591f6652c283b3d035677392b164a7e96760d0
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 26 16:55:31 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 26 16:55:31 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c591f66
dev-python/pyu2f: Enable py3.12
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild
b/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild
index 7d606d1d710b..9c1929203e47 100644
--- a/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild
+++ b/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
@@ -45,5 +45,9 @@ python_prepare_all() {
-e "s:RemoveObject:remove_object:" \
-e "s:SetContents:set_contents:" \
-i pyu2f/tests/hid/linux_test.py || die
+ find pyu2f/tests -name '*.py' -exec \
+ sed -e 's:assertEquals:assertEqual:' \
+ -e 's:assertRaisesRegexp:assertRaisesRegex:' \
+ -i {} + || die
distutils-r1_python_prepare_all
}