dev-python/pydantic: Bump to 2.13.5

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-29 07:57:35 +02:00
parent f8aff4cf1c
commit 2b5f2d736f
2 changed files with 247 additions and 0 deletions

View File

@@ -50,7 +50,10 @@ DIST portable-atomic-1.6.0.crate 140689 BLAKE2B c91d06e04a87c9a207233d8a850859aa
DIST proc-macro2-1.0.86.crate 48958 BLAKE2B 4b89e07f23af8328dbb34fe2b3f1b202f1e6a3885a6269740a23359b41bb4099ac2484565d3b2b0936261689ca525785ac620c766997234fd8d0f409e80e5ea3 SHA512 1cdb7e22a35ae231d880c9420784c9acf97bda2db258b3d34aae5061dc1858449defe19a49e12c6a4173906aa72a4115059ac2db0fc760205fd2ab8b5b414434
DIST pydantic-2.13.4.tar.gz 844775 BLAKE2B 67bc75e8c5582a4e4704c56f1b93fa9f1a9fb4daae8eb087351d8c14a1bb0be2e6671e7a3b80b8d4dc7aac9aba1a8c639406f3dd6605ebeac21c87d7108be5b9 SHA512 c1cd883a44e3664cccf5f8c7a10cfd8d27748af0dc50cbc0bf76d2c591d3b19dd247d8b12ab2f494fd144e80e5a4aeaf94632ef6577c5bee2aadaacd07915249
DIST pydantic-2.13.4.tar.gz.provenance 9347 BLAKE2B 226b939cf131b7eabc7dfc8d2564a2190b4807cd15c5ee44118874b6b59dcd5478adffa97b68c1ead59cdbb905ff57484c265ab6e98fc3651057d65e27eb9bbe SHA512 fa3d57b0b1f1d5aa688ae3cd330d8e604fdb34d7e911cd350e91cb476228a29af084d9d3f060c14b35c3a594c68944fce6791676460c4c8d34e37b6df6dea6a9
DIST pydantic-2.13.5.tar.gz 845750 BLAKE2B d9eede45bbbc759bb1039ec1fe69dced9d20e457b156a8b1246fe2f1a5d6d0f9c151850bad096cce5437d4a732749790368b79f8f67ca946565fb2850734c238 SHA512 3fe65b5610e4aa0bd91c4a97d80cd3f16546f3f35a9d39650ca1d953e403edf17a226f28b9bac5e9a9040e6e67121b99289fee5905dfd00e9fdfcbdebb522a42
DIST pydantic-2.13.5.tar.gz.provenance 9659 BLAKE2B abe19f7ff107cdfb6d6c534aec8a7a2e2ff2d77b495d56beac6bc35f731ed18e8551145d5e23c3926e69c2929fbff14c97891578e5702561afc2030eda2f8cb4 SHA512 ddf3e6087c331e10405ec7c0fd52583c4042f8dce566a74306c8f04f4ec36df6a48c81f7714d816fbc1a8fef28406ee9144a06d1dd3489e7ed8b143b0c923365
DIST pydantic_core-2.46.4.tar.gz 471464 BLAKE2B af359fd74700d806189578a0c401bc76263cc86ca039a854379d65d0e7e4d94bb48819f75656b66f8e9cd3cffa54e319a85faebde2c3dc61baf20572e1ee4be2 SHA512 828573e575da201f486bd02d0a4a95bced6b8e7594cad7a2bdcce372a8e7d389bcb85ac5be10594d2b5847c93e00e3443a9c6d081110ca47d2ce931b90ad2973
DIST pydantic_core-2.46.5.tar.gz 472262 BLAKE2B 2f18c27ddcc2f84f3f97f228d72e17c1eb3e22f89513124488f1b0daca1bdf5a456fc1e2aefe046291f38ec6afe7d1fe6b5d158968466cb4af1241900bfe5281 SHA512 7af13f280d74ab0ded8e9299820930b0257502017f6a688d7d598e72351e127e178db11aeab987decaf95ca8619e151f244392ad9638ea184625728dcbb7cfff
DIST pyo3-0.28.3.crate 1204476 BLAKE2B 8540a1c51bac4fbe04ea34d5ce38471c13d5a3f0759e60cf21d67e846b00feb8316e70f32cb8dc6b74d09f0901ffc83d5f41b1a06da6d34790ef13e4cefcad45 SHA512 f955957eec4b95cc9337d331bba3bba52b4754b301cf86cd974601e64eb20c2424023b19be89a224661fe2e185de646cd3d0d00705b6b5cbd139856c9443a247
DIST pyo3-build-config-0.28.3.crate 35961 BLAKE2B 61a0101913c6d563721049ca99256c2aefd89b017a7e18c82f4a6aceca0aefeaa71fd559cd43adfb5034ce076c904e5188f8f73961ea217287fbfd12caab9401 SHA512 78f85696901b16540d42187d10e888bd929b9f23415faeb73f9798abda1af3506a308145dd4113b070521271c72624d7930fb4b19bad25aa1afd3082030c9126
DIST pyo3-ffi-0.28.3.crate 80881 BLAKE2B 4ac7066c911e2aec18aa9245efed00585d063f81d69910e6a146f8efbf2939ab5de519bbf2a3dde78b40c264e97c62490db80e9b2e84aaf080d63659a6676459 SHA512 ec49b5cc67d19f46c9daea76b37b4988af0f63b9ed67c71190f015a0aa9691d4a8ffd4128413de430928428e1e8e26d44c3103f561e6b71b7e8c4597ab602d9f

View File

@@ -0,0 +1,244 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=hatchling
# no provenance for pydantic-core:
# https://github.com/pydantic/pydantic-core/issues/1842
PYPI_VERIFY_REPO=https://github.com/pydantic/pydantic
PYTHON_COMPAT=( python3_{12..15} )
PYDANTIC_CORE_PV=2.46.${PV##*.}
RUST_MIN_VER="1.88.0"
CRATES="
ahash@0.8.12
aho-corasick@1.1.3
allocator-api2@0.2.21
autocfg@1.3.0
base64@0.22.1
bitflags@2.9.1
bitvec@1.0.1
bumpalo@3.19.0
cc@1.0.101
cfg-if@1.0.0
displaydoc@0.2.5
enum_dispatch@0.3.13
equivalent@1.0.2
foldhash@0.2.0
form_urlencoded@1.2.2
funty@2.0.0
getrandom@0.3.3
hashbrown@0.16.1
heck@0.5.0
hex@0.4.3
icu_collections@1.5.0
icu_locid@1.5.0
icu_locid_transform@1.5.0
icu_locid_transform_data@1.5.0
icu_normalizer@1.5.0
icu_normalizer_data@1.5.0
icu_properties@1.5.1
icu_properties_data@1.5.0
icu_provider@1.5.0
icu_provider_macros@1.5.0
idna@1.1.0
idna_adapter@1.2.0
itoa@1.0.11
jiter@0.14.0
js-sys@0.3.77
lexical-parse-float@1.0.5
lexical-parse-integer@1.0.5
lexical-util@1.0.6
libc@0.2.185
litemap@0.7.3
log@0.4.27
lru@0.16.3
memchr@2.7.4
num-bigint@0.4.6
num-integer@0.1.46
num-traits@0.2.19
once_cell@1.21.3
percent-encoding@2.3.2
portable-atomic@1.6.0
proc-macro2@1.0.86
pyo3-build-config@0.28.3
pyo3-ffi@0.28.3
pyo3-macros-backend@0.28.3
pyo3-macros@0.28.3
pyo3@0.28.3
python3-dll-a@0.2.14
quote@1.0.44
r-efi@5.2.0
radium@0.7.0
regex-automata@0.4.13
regex-syntax@0.8.5
regex@1.12.3
rustversion@1.0.17
serde@1.0.228
serde_core@1.0.228
serde_derive@1.0.228
serde_json@1.0.149
smallvec@1.15.1
speedate@0.17.0
stable_deref_trait@1.2.0
static_assertions@1.1.0
strum@0.27.2
strum_macros@0.27.2
syn@2.0.82
synstructure@0.13.1
tap@1.0.1
target-lexicon@0.13.4
tinystr@0.7.6
unicode-ident@1.0.12
url@2.5.8
utf16_iter@1.0.5
utf8_iter@1.0.4
uuid@1.23.0
version_check@0.9.5
wasi@0.14.2+wasi-0.2.4
wasm-bindgen-backend@0.2.100
wasm-bindgen-macro-support@0.2.100
wasm-bindgen-macro@0.2.100
wasm-bindgen-shared@0.2.100
wasm-bindgen@0.2.100
wit-bindgen-rt@0.39.0
write16@1.0.0
writeable@0.5.5
wyz@0.5.1
yoke-derive@0.7.4
yoke@0.7.4
zerocopy-derive@0.8.25
zerocopy@0.8.25
zerofrom-derive@0.1.4
zerofrom@0.1.4
zerovec-derive@0.10.3
zerovec@0.10.4
zmij@1.0.6
"
inherit cargo distutils-r1 pypi
DESCRIPTION="Data parsing and validation using Python type hints"
HOMEPAGE="
https://github.com/pydantic/pydantic/
https://pypi.org/project/pydantic/
"
# pydantic-core & pydantic have a perfect circular test dep now
SRC_URI+="
$(pypi_sdist_url pydantic_core "${PYDANTIC_CORE_PV}")
${CARGO_CRATE_URIS}
"
PYDANTIC_CORE_S=${WORKDIR}/pydantic_core-${PYDANTIC_CORE_PV}
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
Apache-2.0-with-LLVM-exceptions MIT Unicode-3.0 Unicode-DFS-2016
ZLIB
"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
RDEPEND="
>=dev-python/annotated-types-0.6.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.14.1[${PYTHON_USEDEP}]
>=dev-python/typing-inspection-0.4.2[${PYTHON_USEDEP}]
dev-python/tzdata[${PYTHON_USEDEP}]
!dev-python/pydantic-core
"
BDEPEND="
>=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}]
dev-util/maturin[${PYTHON_USEDEP}]
test? (
dev-python/cloudpickle[${PYTHON_USEDEP}]
dev-python/dirty-equals[${PYTHON_USEDEP}]
>=dev-python/email-validator-2.0.0[${PYTHON_USEDEP}]
>=dev-python/faker-18.13.0[${PYTHON_USEDEP}]
>=dev-python/jsonschema-4.23.0[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/rich[${PYTHON_USEDEP}]
)
"
# pydantic-core
BDEPEND+="
test? (
>=dev-python/dirty-equals-0.5.0[${PYTHON_USEDEP}]
>=dev-python/inline-snapshot-0.13.3[${PYTHON_USEDEP}]
>=dev-python/typing-inspection-0.4.1[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( hypothesis pytest-mock )
distutils_enable_tests pytest
QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/pydantic_core/_pydantic_core.*.so"
src_unpack() {
pypi_src_unpack
cargo_src_unpack
}
src_prepare() {
sed -i -e '/benchmark/d' {.,"${PYDANTIC_CORE_S}"}/pyproject.toml || die
sed -i -e '/^strip/d' "${PYDANTIC_CORE_S}"/Cargo.toml || die
distutils-r1_src_prepare
}
python_compile() {
distutils-r1_python_compile
local DISTUTILS_USE_PEP517=maturin
local DISTUTILS_UPSTREAM_PEP517=maturin
cd "${PYDANTIC_CORE_S}" || die
distutils-r1_python_compile
cd - >/dev/null || die
}
python_test() {
local EPYTEST_DESELECT=(
# == pydantic ==
# -Werror, sigh
tests/test_types_typeddict.py::test_readonly_qualifier_warning
# random regressions?
tests/test_deprecated_fields.py::test_computed_field_deprecated
tests/test_deprecated_fields.py::test_deprecated_field_forward_annotation
tests/test_deprecated_fields.py::test_deprecated_fields
tests/test_deprecated_fields.py::test_deprecated_fields_deprecated_class
tests/test_deprecated_fields.py::test_deprecated_with_boolean
# == pydantic-core ==
# TODO: recursion till segfault
tests/serializers/test_functions.py::test_recursive_call
)
local EPYTEST_IGNORE=(
# require pytest-examples (pydantic)
tests/test_docs.py
# benchmarks (both)
tests/benchmarks
)
if ! has_version "dev-python/cloudpickle[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=(
# (pydantic)
tests/test_pickle.py
)
fi
case ${EPYTHON} in
python3.15*)
EPYTEST_DESELECT+=(
tests/test_types.py::test_base64url_invalid
)
;;
esac
cd "${PYDANTIC_CORE_S}" || die
rm -rf pydantic_core || die
cargo_src_test
epytest -o xfail_strict=False -o addopts=
cd - 2>/dev/null || die
epytest
}