commit: 0301ff26dd31cacc8cae2300ec776492646be557
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 8 10:24:57 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 8 11:09:47 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0301ff26
dev-python/pydantic: Enable pypy3
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pydantic/pydantic-1.9.0.ebuild | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/dev-python/pydantic/pydantic-1.9.0.ebuild
b/dev-python/pydantic/pydantic-1.9.0.ebuild
index 970f223a617f..30c3c8a83e4c 100644
--- a/dev-python/pydantic/pydantic-1.9.0.ebuild
+++ b/dev-python/pydantic/pydantic-1.9.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Data parsing and validation using Python type hints"
@@ -39,11 +39,24 @@ python_test() {
# flaky test, known upstream
tests/test_hypothesis_plugin.py::test_can_construct_models_with_all_fields
)
- [[ ${EPYTHON} == "python3.8" ]] && EPYTEST_DESELECT+=(
- # Those fail on python 3.8 as None changed typing semantic on
>=3.9
- "tests/test_types.py::test_none[value_type3]"
- tests/test_typing.py::test_is_none_type
- )
+ case ${EPYTHON} in
+ python3.8)
+ EPYTEST_DESELECT+=(
+ # Those fail on python 3.8 as None changed
typing semantic on >=3.9
+ "tests/test_types.py::test_none[value_type3]"
+ tests/test_typing.py::test_is_none_type
+ )
+ ;;
+ pypy3)
+ EPYTEST_DESELECT+=(
+
tests/test_private_attributes.py::test_private_attribute
+
tests/test_private_attributes.py::test_private_attribute_annotation
+
tests/test_private_attributes.py::test_private_attribute_factory
+
tests/test_private_attributes.py::test_private_attribute_multiple_inheritance
+
tests/test_private_attributes.py::test_underscore_attrs_are_private
+ )
+ ;;
+ esac
distutils_install_for_testing
epytest
}