Skip to content

Commit e66d429

Browse files
committed
dev-python/pydantic: add 1.10.15
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3519 Signed-off-by: Andreas Billmeier <[email protected]>
1 parent 2d14851 commit e66d429

File tree

4 files changed

+100
-7
lines changed

4 files changed

+100
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
606606

607607
## Licenses
608608
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
609-
There are 1941 Ebuilds in total, 1930 of them have in total 1953 (42 different) licenses assigned.
609+
There are 1943 Ebuilds in total, 1932 of them have in total 1955 (42 different) licenses assigned.
610610

611611
|License| Ebuilds using it|
612612
|-------|-----|
613-
|MIT|1119|
614-
|Apache-2.0|432|
613+
|MIT|1120|
614+
|Apache-2.0|433|
615615
|GPL-3|114|
616616
|BSD|110|
617617
|LGPL-3|25|

dev-python/pydantic/Manifest

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
DIST pydantic-1.10.12.gh.tar.gz 766366 BLAKE2B b00885b86ef331f3f8531d1514f4e3e1ef10d009b35453c6d5a6295ecfe2d2b842f66c7ea2a79ca1d235d54fa38b42432e14804163f944c4455f05c06869815a SHA512 413d433decfa3bb7173d6f4e6e06f746cfbf95f6d27c6a17098216ba81d64d7f8bb956cda195d0676559f96278f3800c77be53ecf46496ac009f130120642cc2
2-
EBUILD pydantic-1.10.12.ebuild 2518 BLAKE2B 84f7ee9b095b56518792f81df308652cdc725c6accef3388615bfea735c676f45e449e0c60ec030349b067a8a97833669071f493325c6644c7a73d08d348dcc3 SHA512 7fedbe4158ce80d41e8686ed19618bb818d3efdf8d508a8d4fdef7f8525a3e4e1364a340ba0d710f2b33327a280e33e5df15c0ea2920446dfee3d1b95cc4862f
2+
DIST pydantic-1.10.15.gh.tar.gz 767909 BLAKE2B 26bc325d91fc8df4ced6f7ac3e083ced00fd5b4255dadf23c95b15ec554c36cdbdf13a457538eb5916837f432c4895d40d1a3af7bb9ac0cc199c14b70951e231 SHA512 58dfb35a832f679c50fc01db3ebabe936d49251c52530c4363a72ecba41dd30bafae8665ae380adf5abe104082b3802fa87ac0351d5c2dde2f44a433b43f8b5c
3+
EBUILD pydantic-1.10.12.ebuild 2373 BLAKE2B df1b5e2296bf4b78aefa20ad4c9b2d3c2ddf80724e86ad6604cd0a52b4f17514314132b3edf1d0a1f968f2cc9ab12cb0e762b9f461bc04ca86403a6265e18693 SHA512 57d428c7dc05b2510a085ea2213ffa400be154659411dbb406d0b3f1f81c298a17b27e93ef0d9ee49940732d3af44eb4a1f6c875bdfb980329371b1f6b9c2c17
4+
EBUILD pydantic-1.10.15.ebuild 2373 BLAKE2B df1b5e2296bf4b78aefa20ad4c9b2d3c2ddf80724e86ad6604cd0a52b4f17514314132b3edf1d0a1f968f2cc9ab12cb0e762b9f461bc04ca86403a6265e18693 SHA512 57d428c7dc05b2510a085ea2213ffa400be154659411dbb406d0b3f1f81c298a17b27e93ef0d9ee49940732d3af44eb4a1f6c875bdfb980329371b1f6b9c2c17
35
MISC metadata.xml 561 BLAKE2B 9cb2851ece8c8bd005a45008efe6d14d990f82832700f641418c15921f368de9bf2b20f9713362f5308a871a10c60a54ddce4e095a4a60209c89bde964c71ef7 SHA512 2f26f32c0d937153966ffbc3b9bb67252043dabfd9ca96b2ba854b111300a0c8bc89a664e439cda3bcc39597c3a29d28b3aa84172ece0f1d818b49cda746ee33

dev-python/pydantic/pydantic-1.10.12.ebuild

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Copyright 1999-2023 Gentoo Authors
1+
# Copyright 1999-2024 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

44
EAPI=8
55

66
DISTUTILS_EXT=1
77
DISTUTILS_USE_PEP517=setuptools
8-
PYTHON_COMPAT=( pypy3 python3_{10..12} )
8+
PYTHON_COMPAT=( python3_{11..13} )
99

1010
inherit distutils-r1
1111

@@ -23,7 +23,7 @@ S=${WORKDIR}/${MY_P}
2323

2424
LICENSE="MIT"
2525
SLOT="0"
26-
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
26+
KEYWORDS="amd64 arm arm64 x86"
2727
IUSE="native-extensions"
2828

2929
RDEPEND="
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DISTUTILS_EXT=1
7+
DISTUTILS_USE_PEP517=setuptools
8+
PYTHON_COMPAT=( python3_{11..13} )
9+
10+
inherit distutils-r1
11+
12+
MY_P=${P/_beta/b}
13+
DESCRIPTION="Data parsing and validation using Python type hints"
14+
HOMEPAGE="
15+
https://github.com/pydantic/pydantic/
16+
https://pypi.org/project/pydantic/
17+
"
18+
SRC_URI="
19+
https://github.com/pydantic/pydantic/archive/v${PV/_beta/b}.tar.gz
20+
-> ${MY_P}.gh.tar.gz
21+
"
22+
S=${WORKDIR}/${MY_P}
23+
24+
LICENSE="MIT"
25+
SLOT="0"
26+
KEYWORDS="amd64 arm arm64 x86"
27+
IUSE="native-extensions"
28+
29+
RDEPEND="
30+
>=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}]
31+
"
32+
BDEPEND="
33+
native-extensions? (
34+
<dev-python/cython-3[${PYTHON_USEDEP}]
35+
)
36+
test? (
37+
>=dev-python/email-validator-1.2.1[${PYTHON_USEDEP}]
38+
dev-python/hypothesis[${PYTHON_USEDEP}]
39+
dev-python/pytest-mock[${PYTHON_USEDEP}]
40+
dev-python/python-dotenv[${PYTHON_USEDEP}]
41+
)
42+
"
43+
44+
distutils_enable_tests pytest
45+
46+
src_prepare() {
47+
sed -i -e '/CFLAGS/d' setup.py || die
48+
distutils-r1_src_prepare
49+
}
50+
51+
python_compile() {
52+
if [[ ${EPYTHON} == pypy3 ]] || ! use native-extensions; then
53+
# do not build extensions on PyPy to workaround
54+
# https://github.com/cython/cython/issues/4763
55+
local -x SKIP_CYTHON=1
56+
fi
57+
distutils-r1_python_compile
58+
}
59+
60+
python_test() {
61+
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
62+
local -x PYTEST_PLUGINS=pytest_mock
63+
64+
local EPYTEST_DESELECT=(
65+
# flaky test, known upstream
66+
tests/test_hypothesis_plugin.py::test_can_construct_models_with_all_fields
67+
# mypy linting causes regressions with new mypy versions
68+
tests/mypy
69+
)
70+
case ${EPYTHON} in
71+
pypy3)
72+
EPYTEST_DESELECT+=(
73+
tests/test_private_attributes.py::test_private_attribute
74+
tests/test_private_attributes.py::test_private_attribute_annotation
75+
tests/test_private_attributes.py::test_private_attribute_factory
76+
tests/test_private_attributes.py::test_private_attribute_multiple_inheritance
77+
tests/test_private_attributes.py::test_underscore_attrs_are_private
78+
)
79+
;;
80+
python3.12)
81+
EPYTEST_DESELECT+=(
82+
tests/test_abc.py::test_model_subclassing_abstract_base_classes_without_implementation_raises_exception
83+
tests/test_generics.py::test_partial_specification_name
84+
tests/test_generics.py::test_parse_generic_json
85+
tests/test_types.py::test_secretfield
86+
)
87+
;;
88+
esac
89+
rm -rf pydantic || die
90+
epytest
91+
}

0 commit comments

Comments
 (0)