Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pydantic/
Date: Fri, 08 Apr 2022 11:10:05
Message-Id: 1649416187.0301ff26dd31cacc8cae2300ec776492646be557.mgorny@gentoo
1 commit: 0301ff26dd31cacc8cae2300ec776492646be557
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 10:24:57 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 11:09:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0301ff26
7
8 dev-python/pydantic: Enable pypy3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pydantic/pydantic-1.9.0.ebuild | 25 +++++++++++++++++++------
13 1 file changed, 19 insertions(+), 6 deletions(-)
14
15 diff --git a/dev-python/pydantic/pydantic-1.9.0.ebuild b/dev-python/pydantic/pydantic-1.9.0.ebuild
16 index 970f223a617f..30c3c8a83e4c 100644
17 --- a/dev-python/pydantic/pydantic-1.9.0.ebuild
18 +++ b/dev-python/pydantic/pydantic-1.9.0.ebuild
19 @@ -3,7 +3,7 @@
20
21 EAPI=8
22
23 -PYTHON_COMPAT=( python3_{8..10} )
24 +PYTHON_COMPAT=( pypy3 python3_{8..10} )
25 inherit distutils-r1
26
27 DESCRIPTION="Data parsing and validation using Python type hints"
28 @@ -39,11 +39,24 @@ python_test() {
29 # flaky test, known upstream
30 tests/test_hypothesis_plugin.py::test_can_construct_models_with_all_fields
31 )
32 - [[ ${EPYTHON} == "python3.8" ]] && EPYTEST_DESELECT+=(
33 - # Those fail on python 3.8 as None changed typing semantic on >=3.9
34 - "tests/test_types.py::test_none[value_type3]"
35 - tests/test_typing.py::test_is_none_type
36 - )
37 + case ${EPYTHON} in
38 + python3.8)
39 + EPYTEST_DESELECT+=(
40 + # Those fail on python 3.8 as None changed typing semantic on >=3.9
41 + "tests/test_types.py::test_none[value_type3]"
42 + tests/test_typing.py::test_is_none_type
43 + )
44 + ;;
45 + pypy3)
46 + EPYTEST_DESELECT+=(
47 + tests/test_private_attributes.py::test_private_attribute
48 + tests/test_private_attributes.py::test_private_attribute_annotation
49 + tests/test_private_attributes.py::test_private_attribute_factory
50 + tests/test_private_attributes.py::test_private_attribute_multiple_inheritance
51 + tests/test_private_attributes.py::test_underscore_attrs_are_private
52 + )
53 + ;;
54 + esac
55 distutils_install_for_testing
56 epytest
57 }