commit:     c2c8ec5dbbfe039b0e468944080b9533e981f99b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 30 01:39:16 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug 30 01:53:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2c8ec5d

dev-python/pydantic-core: Bump to 2.23.1

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

 dev-python/pydantic-core/Manifest                  |   1 +
 .../pydantic-core/pydantic-core-2.23.1.ebuild      | 167 +++++++++++++++++++++
 2 files changed, 168 insertions(+)

diff --git a/dev-python/pydantic-core/Manifest 
b/dev-python/pydantic-core/Manifest
index c32296b83034..e4f920fcf89a 100644
--- a/dev-python/pydantic-core/Manifest
+++ b/dev-python/pydantic-core/Manifest
@@ -71,6 +71,7 @@ DIST proc-macro2-1.0.86.crate 48958 BLAKE2B 
4b89e07f23af8328dbb34fe2b3f1b202f1e6
 DIST pydantic_core-2.18.4.tar.gz 385098 BLAKE2B 
6bea502397c327f38a000e9ea3b59b7d7f9fde5336562a081c6cdf88d92fe5e420eecec696ee432f1c6c5ec5dad8173f250897c4ae681a367ad28617724843f0
 SHA512 
01bdf79a79468e2a6a66f41830b98dc0adfb6d87b221e57e1da5a27b4068dea906aa987b9a7eca3bdc107e97e6bfa9ea164c527bbe2ceb683419ef147747b786
 DIST pydantic_core-2.20.1.tar.gz 388371 BLAKE2B 
d8c66cddd93fe4a56a901e5f06fe86c0c87b11397567e5400bf89e5884e13c98d37bbdc42ccd0bdd67c552370c17ed26d9a7897303544a816022d8a47ee8bc18
 SHA512 
fb5362a07282a54be9cbcf0773b5492dc1773c71d96979586885d920d794b13860a32a8165e7b5e023f9f0f7a3c85aa5098dc66d6626d5d290d3ab63fa70453f
 DIST pydantic_core-2.23.0.tar.gz 398665 BLAKE2B 
4d62c6956f8309d8e03d3838dd9da7045b64f69836117b82bc0453ca2765053f37e8760076dcb9163729fcca7cfa36b2c7750031d4b5df7eda8234e99485c0f0
 SHA512 
84e7f5d8c2e1085575284d9d386194abe959b09c1b3bd6f16b79ac06b2a9104b52e01d1758f6a056590e138e2a33e73eaaf9539cb24a4ffbd1916e41cf8b81b8
+DIST pydantic_core-2.23.1.tar.gz 399302 BLAKE2B 
36dbdb817ae44aa19572c85f380499ae60e5722863de728b5b67c11627b352ac9dd14120cbb471f9dbd3ba8e8ad20a0356d52e950d4d6df2b01996c3fa95f97a
 SHA512 
d09bec6d1452a6cc6b947cea7744a49860bde00b9481c37dc5c72b0ba4426fa0cd6eb73e080cdc4d69c986094d5ad0c02171d23b3199ba7ad60aafe205bc2a97
 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.23.1.ebuild 
b/dev-python/pydantic-core/pydantic-core-2.23.1.ebuild
new file mode 100644
index 000000000000..6c5c58be8e4e
--- /dev/null
+++ b/dev-python/pydantic-core/pydantic-core-2.23.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 ~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