dev-python/pydantic: Bump to 2.12.5

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-11-27 04:15:14 +01:00
parent ee6f81e410
commit b2bbcd8f2d
No known key found for this signature in database
GPG Key ID: 8E32347AF4055AE8
2 changed files with 233 additions and 0 deletions

View File

@ -53,6 +53,8 @@ DIST pydantic-2.12.3.tar.gz 819383 BLAKE2B 77e7242c478ad0cb686334207737d93e7381e
DIST pydantic-2.12.3.tar.gz.provenance 9153 BLAKE2B 9e7de239ba62592cf420a77a85cd64e7ace52d7cc8eb8069af6b0d811e6ce740602df7ec6af97086659437b400d5faece4ed9190ba9fa590eab747c766c14cf2 SHA512 1c3cf685838846b350f309b2ec71f7794490277bcfd799031decc53bf4ccb2eb634952103b37148b3a3cd14b5f009845bb40f97047f865d24f23b26136c9bf38
DIST pydantic-2.12.4.tar.gz 821038 BLAKE2B c756e980c65af58785d39233d4d3adb4f738d2f7072df1b11525fc1fd150bf10eaf7ce81e1922eaf860ed1011c830bcdf87b5285b3f36c06b21ea621098b9aa8 SHA512 50eb4ac28a9990a2005f82caf1d363dc9d3c19592d734228f6ade2556f252a6551f99c628d144df8b3aa18dc8054348dd0b8d77008c407f62ac85633dc2cf917
DIST pydantic-2.12.4.tar.gz.provenance 9243 BLAKE2B f81fd238a3ec0e86520578046d4921166dfd2cce5a65317704d9fdc3a73f478388fa8ba0ce53800842895e8af40b9f8427c470317f9b79f008db914140799484 SHA512 bd3cc6a5cccb1ec88dd7eaf3b3347acae56fc4b396dff2a38a5913dc5205866591bd7bdfab25fbb15107e8162ca0aef3b0fa0c214266c30d962c41df6ddc5f2d
DIST pydantic-2.12.5.tar.gz 821591 BLAKE2B 7b139db92fc103cc5e0e5820a3541af8ffaa850ecca9d0136f09768bf5f51ceddb933b12434ea3428b9e2f10e587d9227ec22ced9609b83759765446e6a9cb9d SHA512 93968bf402ba1b2ea48375be021f8e2cfc61bee2cb39a7ec470bf445d752f1bfd638dd951b34f443ddb6a853aa81f1860b11cc6478eb20c142e48347c80ec827
DIST pydantic-2.12.5.tar.gz.provenance 9274 BLAKE2B 9796b665fbb38345b99cbe1ca5890c14a1bbdc2f1995f69685aab53590aaabdc841544d4cacb0e723414bfc8cc18b0368ae958d486b84bfdd201537c78eab3a4 SHA512 e95f64e35c6fbc35d3d6fee2b1104b0a48df5fc0376d95dc4102961f957eed6ebbcb51903cd51e7a61dbd97e6f0e0b5c1d50e26a352018e4a1079169e34a249a
DIST pydantic_core-2.41.4.tar.gz 457557 BLAKE2B ebff295fe3a735fe29fd1c2384eb54c44f783413e849848392eff23e317f3e6650567211a284c2f5df5318827e447ff4ab457f7d63984e3a618698f3b9bfc243 SHA512 aced59b149d48956220407ff42001167c7fa98f3ae7539bab0b16011bf9a38d9c1e8994770db7bb0426114d3322316cb3ce12cb1961d54f6a4798d8b00d1ee85
DIST pydantic_core-2.41.5.tar.gz 460952 BLAKE2B dd7d45acdc5f3093668cb57813c0c4e40e5916d04f75ef8f06308ec00243c9b0469cba5ffd2eb8449e11279d28c12ccc039dc03ed108cdb879da675d9f61aebe SHA512 1447f257efdbad0f70b490569c073696f8bdcdbd0baccac40e843520eb3cabfd23d499dca31afdc67581dd6a690cc138b882f393a91f57afcc309c800b9620c3
DIST pyo3-0.26.0.crate 1151579 BLAKE2B bcc8236785502928bf4a0b7a320e0a8f3d6140c562de4351a52d015aaebb8dd6b4d68fe607c8ea13ec66941c8f01d2c18c4249adfacb521355d4bf158667f3a3 SHA512 e073a4d893f88aa0301ef0ead78048137515edd93c490e6dccbc301ff65a208534c65c1d216b04639d4b1ec1e4b69bc87bd34974e5d0659134c28dcce589c194

View File

@ -0,0 +1,231 @@
# Copyright 1999-2025 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=( pypy3_11 python3_{11..14} )
PYDANTIC_CORE_PV=2.41.5
RUST_MIN_VER="1.75.0"
CRATES="
ahash@0.8.12
aho-corasick@1.1.3
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
form_urlencoded@1.2.1
funty@2.0.0
getrandom@0.3.3
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
indoc@2.0.5
itoa@1.0.11
jiter@0.11.1
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.155
litemap@0.7.3
log@0.4.27
memchr@2.7.4
memoffset@0.9.1
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.26.0
pyo3-ffi@0.26.0
pyo3-macros-backend@0.26.0
pyo3-macros@0.26.0
pyo3@0.26.0
python3-dll-a@0.2.14
quote@1.0.36
r-efi@5.2.0
radium@0.7.0
regex-automata@0.4.13
regex-syntax@0.8.5
regex@1.12.2
rustversion@1.0.17
ryu@1.0.18
serde@1.0.228
serde_core@1.0.228
serde_derive@1.0.228
serde_json@1.0.145
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.2
tinystr@0.7.6
unicode-ident@1.0.12
unindent@0.2.3
url@2.5.4
utf16_iter@1.0.5
utf8_iter@1.0.4
uuid@1.18.1
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
"
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
|| ( Apache-2.0 Boost-1.0 )
"
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? (
$(python_gen_cond_dep '
dev-python/cloudpickle[${PYTHON_USEDEP}]
' 'python3*')
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
# == 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
cd "${PYDANTIC_CORE_S}" || die
rm -rf pydantic_core || die
# tests link to libpython, so they fail to link on pypy3
[[ ${EPYTHON} != pypy3* ]] && cargo_src_test
epytest -o xfail_strict=False -o addopts=
cd - 2>/dev/null || die
epytest
}