commit:     543caf27966df0f02bf3a6128254da9c8d870014
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 31 05:10:17 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct 31 05:22:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=543caf27

dev-python/pydantic-core: Bump to 2.25.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pydantic-core/Manifest                  |   2 +
 .../pydantic-core/pydantic-core-2.25.1.ebuild      | 167 +++++++++++++++++++++
 2 files changed, 169 insertions(+)

diff --git a/dev-python/pydantic-core/Manifest 
b/dev-python/pydantic-core/Manifest
index e169165ffc0a..8256b7d85598 100644
--- a/dev-python/pydantic-core/Manifest
+++ b/dev-python/pydantic-core/Manifest
@@ -30,6 +30,7 @@ DIST indexmap-2.2.6.crate 82420 BLAKE2B 
fac5cf6339dc3c0a40b100035a5c874cc7b2efea
 DIST indoc-2.0.5.crate 14396 BLAKE2B 
fe838c6a855d6ff7396675a3fe9b2e0b06a93cfd4013b0b843d24d2fb81f6566528bfd1753c649646f06cb7e59262bd6ec3ed79d4e6f01d740cf0682355f2e5a
 SHA512 
095fb56a3d87946c42a63065a8b276c2d4b9b835800014b400bb987593bf56701bad9f55d947f090740fdb7641a4f3c87fe8bfa5724709e95254d1e8e2e3616f
 DIST itoa-1.0.11.crate 10563 BLAKE2B 
94da07e0f7f2535d0b1491b3a3c64905274b315ffd35ec8e9a3e36e26cd7211733b462eefb5208963e388345f65be9694804c344a6132b2b595b0bc716c0b328
 SHA512 
7e22dffac34c9c9f432daef395e0ec710ed658164bc9cd9fc6445c9f984c912a10bac556214a026bcddbe27a3197b35b0c87d6709fd605062637d086b2d20311
 DIST jiter-0.5.0.crate 141152 BLAKE2B 
5ab42f40c3a1fa5717447085cc289d89c649570022dde6c628f24f7dcce1c40cbdc5e4f6dc92afeabc3645683636fe7762ccf70665a1139bb39e2bdf481074da
 SHA512 
79e1aaf52bbfccf010124325f7010839a9d5c4ce89cf0a6f68f8d6107af3e95dc4ed21ef341f92e71cf2e88119c911289af0cbea3aafdb5f5d49a45f103f26d7
+DIST jiter-0.6.1.crate 142818 BLAKE2B 
b0c281cc32ef6adac09cc38b7c0fcd9118b2e0abb860a9020f2d30ec23ef6a8e4b579cfbd89de949f446dd6f9215240ceda7876f25cd010a6cd0a4e0091c65ad
 SHA512 
7d70e9985b4cfc72f15b2307a1522d8937f702a816f3f0e99f305bb66fa5965e181809ce795506472301f221e583a4d9a0844c8218898787c47962c01f6b8fda
 DIST lexical-parse-float-0.8.5.crate 180161 BLAKE2B 
881e4db32a21c26a1919fd1373aef1ea16a6fca3d799edb18ff0c9e4a79d481f8ade7a93f9ded2a660ad10cf815eb757f6eec7887945f8203c467e700af7a9a3
 SHA512 
ef012cbf18f2e306724dd700ac259aaa73b44f6c4531377deb9979c80d31ae66fc1a8b2671bd677e0ebfad8f77e9a5cf25707c67a1c5b1f554953c036cb39d46
 DIST lexical-parse-integer-0.8.6.crate 33647 BLAKE2B 
a0ebd7a51c271a163796b0f55bb85e16830bf06e26e3f10d9b13dc5b65af590c77f47fb64360a8738c5ad4be6e6932d58e83e1594a80c067859645c35b907c53
 SHA512 
e9a814d2928bf5bb2d9dce53e26c65356191c9e21c3aa0e674d58ed879aa52293272f3897f64372d996a3f8c471b0f59348ad48f15a21c2f35ed15f522ac2daa
 DIST lexical-util-0.8.5.crate 85152 BLAKE2B 
42a968c6f9d20cb4cb10906399d37d6581b425eadb31439fec4a71395819133249c4fb75b1d962100e77ba35b6f6b4cd428d5b5c161b405b22333ee390e671a6
 SHA512 
449c7f2a22c109cd179937c36e14d91c742e1a837a85fcf4fb58c21f05317511d1281b564d216a34760ae54a0df2d0ff5caf49da4aa9d43a8d87fcec0033cc39
@@ -46,6 +47,7 @@ DIST portable-atomic-1.6.0.crate 140689 BLAKE2B 
c91d06e04a87c9a207233d8a850859aa
 DIST proc-macro2-1.0.86.crate 48958 BLAKE2B 
4b89e07f23af8328dbb34fe2b3f1b202f1e6a3885a6269740a23359b41bb4099ac2484565d3b2b0936261689ca525785ac620c766997234fd8d0f409e80e5ea3
 SHA512 
1cdb7e22a35ae231d880c9420784c9acf97bda2db258b3d34aae5061dc1858449defe19a49e12c6a4173906aa72a4115059ac2db0fc760205fd2ab8b5b414434
 DIST pydantic_core-2.23.4.tar.gz 402156 BLAKE2B 
af899e149693907542296b5b4fa5f982d2dca5c090331703212aabbbce0a8e0badca3947affa9e42998949ebd18b1ffc2ad9904b47e130bbe7e90150c32bc527
 SHA512 
c7c9a303ff3c751108622f804f812f3793ad93a95e560b0d6b0a866c3bd41ed7bfdbcd87483f37ad3849969c72adde24083d1a9015ebd610847a7fa6d4068e24
 DIST pydantic_core-2.25.0.tar.gz 407498 BLAKE2B 
2f729013d1da81bdedc61ae67c2c11c31edec97c6de141255cd642255c3447523e13c25d2dff034e8229f86067388109237358c76dfafea2bf938a34668d9938
 SHA512 
2c3bf8818ba8b7cea4eb580709b38860465c774381170c6a52a771a97a5b9f9accf86bcf3d1131b5cb40fcf805f2cdc7bdf54541da50d9bf5b02644e674ae8a9
+DIST pydantic_core-2.25.1.tar.gz 408040 BLAKE2B 
a64beeb9b8cb2d71aa4d30000361f863c3bb5d3964c0fe657bea60f370eca6a289279a8685983cfc5a0623f2f2609659b5ba9274cdf002b18431b2a0d965025c
 SHA512 
9b7cfb297295f0d64147b2b4bcdc07c10f8aca03c8c7223bd2302319384b6ebfebe6196bd15673c69c961e2b8096199b5741d9e1bf77a72004e471823bbd514c
 DIST pyo3-0.22.2.crate 538342 BLAKE2B 
faf347695117f9fe0ebe5cd7f6aa1b0dcfe718343875d6c06438046deccc1075f104d2a2413dcda41ae9827bc363aa147057b45968f6634f577a6a4510a4bb8e
 SHA512 
e8bae09059f50ffe477dad44499cedeaf3a734665f0fd8e8bd4b44f48578d21e4bdb8d55ceea00c5a27da750761842ddf89cfcecdecb2e7a4a17ab192259be9c
 DIST pyo3-0.22.5.crate 546700 BLAKE2B 
8ee81360b205bcfc763dbd3d313e2d2f31bde4577bdc77a2ebc3084aa06e30bcc1f7efb97349d781b27882af5b8e82c6476498c86039b9c39286721ed1c08504
 SHA512 
48b9ada19bb12c6e5f1d41982c3b607f206d88dc078517c45106b631e0ad973145b0b60af06e58013a5189ca8b50e1cfa326c6904bba5aadb791933272ffb277
 DIST pyo3-build-config-0.22.2.crate 31225 BLAKE2B 
c2e6a3d3d23b7f2f51bcbf1214ab20a298a1e62f85c9af3dab1e77b09f20b657b576feefffb18eb49d438f0ffab525b6bcd1086d500601c327ffd4fd24a719ee
 SHA512 
644c82d30bb27051557efcc9789a81380a64e29bc62abf97de88f42c3791dac74228c7a7d09e0d46d14f07c0475f0bc03fac6ed1367b9a616153e8820b94cbc8

diff --git a/dev-python/pydantic-core/pydantic-core-2.25.1.ebuild 
b/dev-python/pydantic-core/pydantic-core-2.25.1.ebuild
new file mode 100644
index 000000000000..30937b9650bb
--- /dev/null
+++ b/dev-python/pydantic-core/pydantic-core-2.25.1.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
+}

Reply via email to