commit: cf80c249acaf582a1c5f0b1030184451319142ee
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 21 06:32:11 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 21 07:40:52 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf80c249
dev-python/pydantic-core: Bump to 2.24.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pydantic-core/Manifest | 1 +
.../pydantic-core/pydantic-core-2.24.0.ebuild | 167 +++++++++++++++++++++
2 files changed, 168 insertions(+)
diff --git a/dev-python/pydantic-core/Manifest
b/dev-python/pydantic-core/Manifest
index 0b8154a32331..c79088a134f6 100644
--- a/dev-python/pydantic-core/Manifest
+++ b/dev-python/pydantic-core/Manifest
@@ -76,6 +76,7 @@ DIST pydantic_core-2.23.1.tar.gz 399302 BLAKE2B
36dbdb817ae44aa19572c85f380499ae
DIST pydantic_core-2.23.2.tar.gz 401901 BLAKE2B
5cb8bd0a52cb32a226d7dc711bc6db1b33d8e5236069cc3f8881123cc0387e37c88aa6d898c434490c97814dc2df0296979d6abac52714f883159984d2f215bc
SHA512
65ac846c6028e77cf53a95be2d45ffc1ef8bd691d1738c13f96b1823853f282bf64e876cc1e02ae99a967076578b0ba3c73572b441034850e9d49a1242e1bfa1
DIST pydantic_core-2.23.3.tar.gz 402277 BLAKE2B
4418f6972e3d31d1428a5ed6a653d0eac6cb5067c102327268ab0f72b23410927990274aa9fa1c2ea8e14deb4dcd689a559f99edfeffdef2b05e0404dd51c1f6
SHA512
216ad4b2d32276ef89da842271bc9a6149e98782391e2a4159983b48377dd56960021bf89eea62e9a82e2bafa9eff1dc500ddf14699fa727f868284579a38334
DIST pydantic_core-2.23.4.tar.gz 402156 BLAKE2B
af899e149693907542296b5b4fa5f982d2dca5c090331703212aabbbce0a8e0badca3947affa9e42998949ebd18b1ffc2ad9904b47e130bbe7e90150c32bc527
SHA512
c7c9a303ff3c751108622f804f812f3793ad93a95e560b0d6b0a866c3bd41ed7bfdbcd87483f37ad3849969c72adde24083d1a9015ebd610847a7fa6d4068e24
+DIST pydantic_core-2.24.0.tar.gz 405714 BLAKE2B
4ce0a27cd35d6fa41adfe34734b73851733ca5f02971efdcc3b22f97736422dcb4c71dd743a79a61cd2b0545aaf23e2868629534728e8019ab4fc5b3033e2a05
SHA512
fef249007a61fc585f6ebeb9cab7922b33770969c1afba70cae4deb406009125664a0b3347b14198f7d0c3611287e68ee4ad41ed70a065ca66c93c90ff5f4787
DIST pyo3-0.21.2.crate 504574 BLAKE2B
1b8bf374d1b61e3e4bedce6344338126051a6d951ea87d258e5ed92d4c0e13b0202f2e7e56500277c54743dd16c9b4587f436cf2058567501c8a9ac7c6b6c17a
SHA512
5f88cda423e82b62698a74ceaa31fc27e5c1f1d417928accddb2e00337d163fda622f774ae6e24c1cb73c467d6b01e9a2ba866e4454338b1fbfc892ae14ffc53
DIST pyo3-0.22.0.crate 535742 BLAKE2B
772a4f8b718bbec32faa3dac4cad07a5b452fb366280753c3316d932663bf367192483fb5cd0bd405321128e67157b982eaa89264685739a141e021f0f7e2b72
SHA512
44e0237fd3a8d4c7b082c48a5c8a52d8f4cc4673d134f680e29504bb46d870015fa210da34de4c1998defbcd4afdf2aaea4e148fbe093e4b2c8b0d064cd48da4
DIST pyo3-0.22.2.crate 538342 BLAKE2B
faf347695117f9fe0ebe5cd7f6aa1b0dcfe718343875d6c06438046deccc1075f104d2a2413dcda41ae9827bc363aa147057b45968f6634f577a6a4510a4bb8e
SHA512
e8bae09059f50ffe477dad44499cedeaf3a734665f0fd8e8bd4b44f48578d21e4bdb8d55ceea00c5a27da750761842ddf89cfcecdecb2e7a4a17ab192259be9c
diff --git a/dev-python/pydantic-core/pydantic-core-2.24.0.ebuild
b/dev-python/pydantic-core/pydantic-core-2.24.0.ebuild
new file mode 100644
index 000000000000..a641f653d21d
--- /dev/null
+++ b/dev-python/pydantic-core/pydantic-core-2.24.0.ebuild
@@ -0,0 +1,167 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=maturin
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+CRATES="
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]+wasi-snapshot-preview1
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+"
+
+inherit cargo distutils-r1 pypi
+
+DESCRIPTION="Core validation logic for pydantic written in Rust"
+HOMEPAGE="
+ https://github.com/pydantic/pydantic-core/
+ https://pypi.org/project/pydantic-core/
+"
+SRC_URI+="
+ ${CARGO_CRATE_URIS}
+"
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0-with-LLVM-exceptions MIT Unicode-3.0 Unicode-DFS-2016
+ || ( Apache-2.0 Boost-1.0 )
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-python/typing-extensions-4.7.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ >=virtual/rust-1.70.0
+ test? (
+ >=dev-python/dirty-equals-0.5.0[${PYTHON_USEDEP}]
+ >=dev-python/hypothesis-6.63.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-mock-3.10.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
+ >=dev-python/pydantic-1.10.4[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/pydantic_core/_pydantic_core.*.so"
+
+src_prepare() {
+ sed -i -e '/--benchmark/d' pyproject.toml || die
+ sed -i -e '/^strip/d' Cargo.toml || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local EPYTEST_IGNORE=(
+ tests/benchmarks
+ )
+ local EPYTEST_DESELECT=(
+ # TODO: recursion till segfault
+ tests/serializers/test_functions.py::test_recursive_call
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ rm -rf pydantic_core || die
+ # tests link to libpython, so they fail to link on pypy3
+ [[ ${EPYTHON} != pypy3 ]] && cargo_src_test
+ epytest -p pytest_mock -p timeout -o xfail_strict=False
+}