summaryrefslogtreecommitdiff
path: root/dev-python/pydantic
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-10-12 03:05:03 -0500
committerCrucible <crucible@localhost>2026-10-12 03:05:03 -0500
commit4b55d0eea228906cd0864c9de5dccd8e2dde88dc (patch)
tree09a0345d9af716b6a911cd5653524bf5a44c66e4 /dev-python/pydantic
parent170dbd8dd96efb51132a4957c7c58a21422297b8 (diff)
downloadsrcux-4b55d0eea228906cd0864c9de5dccd8e2dde88dc.tar.gz
srcux-4b55d0eea228906cd0864c9de5dccd8e2dde88dc.tar.xz
srcux-4b55d0eea228906cd0864c9de5dccd8e2dde88dc.zip
Publish srcux candidate 0000000640-20261012-030307
Diffstat (limited to 'dev-python/pydantic')
-rw-r--r--dev-python/pydantic/Manifest3
-rw-r--r--dev-python/pydantic/pydantic-2.14.1.ebuild234
2 files changed, 237 insertions, 0 deletions
diff --git a/dev-python/pydantic/Manifest b/dev-python/pydantic/Manifest
index 3d1b44716bc3..c07b0c61a53a 100644
--- a/dev-python/pydantic/Manifest
+++ b/dev-python/pydantic/Manifest
@@ -57,8 +57,11 @@ DIST pydantic-2.13.5.tar.gz 845750 BLAKE2B d9eede45bbbc759bb1039ec1fe69dced9d20e
DIST pydantic-2.13.5.tar.gz.provenance 9659 BLAKE2B abe19f7ff107cdfb6d6c534aec8a7a2e2ff2d77b495d56beac6bc35f731ed18e8551145d5e23c3926e69c2929fbff14c97891578e5702561afc2030eda2f8cb4 SHA512 ddf3e6087c331e10405ec7c0fd52583c4042f8dce566a74306c8f04f4ec36df6a48c81f7714d816fbc1a8fef28406ee9144a06d1dd3489e7ed8b143b0c923365
DIST pydantic-2.14.0.tar.gz 898613 BLAKE2B 003f6b6d303686fb30cd64be3c017e246e229bf10a156a9aaa93ecd98bc5aa315197c6883f4a112ec6057fb4aa9a08cc9a18cf779c094391c75a7f9302374b7a SHA512 05323fe3930410c47e98f87d1201a4f428d4e4853c05d174d5fd56925594062ec931d4752f8e7e2a827fbf76eebbbb8acf795597a3dd5a1ad5a0fb5764036023
DIST pydantic-2.14.0.tar.gz.provenance 9500 BLAKE2B c1473e60712a8d72927933583f3e95df0b34d06f2643828c8e33d4f6bc8d36d3b89dad98b1a2067989db1ddd9fe9463d7085affa051669c84cd2ee6c5bb59b90 SHA512 15173e04473881b29d5641d7df63ed8531ba9cee576089b10c90bb170f29489eb6c46145eedec283e03676ad64461c72974987b7490d3b050fe3448bb22a25c3
+DIST pydantic-2.14.1.tar.gz 900362 BLAKE2B 261b60d22ddcfff3876c99daae4f7fc6a61ec968c2d58315a4fa94d30132a795b527978be1c082841083aa8cc9670ec687af879ea1857aaa20f5f3de46d7ac7b SHA512 f5c0f0f856e4a9cb50482b4a9ec1366a11b16a996d480addec22738b07648cf97f33f44680cfea203ee7f773facfdc899b40d6096f65b56c615e30ce4dc6bd48
+DIST pydantic-2.14.1.tar.gz.provenance 9739 BLAKE2B 2f87a8ff71827e9e375ef03a80d6d366b739866be905a003e394419143103fc5959219bb6f92dbc451e5a44482006088413d04f2d6c26f742f7fdcf0ffe92e74 SHA512 7de220a74a8df7cbfad19fdef8971bef0e7abb990e619ba1ced202b3cc784a3b864b5a22af97de8ab1e11a8f9908fa10c580ea1c3e6b0009ea9e505ceb821475
DIST pydantic_core-2.46.5.tar.gz 472262 BLAKE2B 2f18c27ddcc2f84f3f97f228d72e17c1eb3e22f89513124488f1b0daca1bdf5a456fc1e2aefe046291f38ec6afe7d1fe6b5d158968466cb4af1241900bfe5281 SHA512 7af13f280d74ab0ded8e9299820930b0257502017f6a688d7d598e72351e127e178db11aeab987decaf95ca8619e151f244392ad9638ea184625728dcbb7cfff
DIST pydantic_core-2.50.0.tar.gz 513355 BLAKE2B eecf0692326afb88181fa3e93d65dd8bc415c9502dc4c6e9a2845473109f8b9c079c1e07af6cb7f59fc5800c28ce4fcc87b505b3e9daf9d94efa9450662fcbf8 SHA512 50967ffd2f1a438a458f7cc6226a85f034c6ad946b24dd509b8aa5d30e5c8b7ddc666cb28bcd2d9cf5fd9e5baddca785179b489b22665d7f6fd7fd0b4f377d83
+DIST pydantic_core-2.50.1.tar.gz 513515 BLAKE2B c2535ba27fb2152792c2b9593e9970eaa1184ab87bdbbcd39624e76d0ee2e9f0426c3772765383cd54597bf2c97781b9cb59fb43a280ca443a4dee9f246b076d SHA512 1287904873f36825beff3e7a76f8f897c95849ed55b4a95409964420265ba30dd85006e0b727da0dc3a877521fa79e700e20c4f8046da6649dd634d7615feda6
DIST pyo3-0.28.3.crate 1204476 BLAKE2B 8540a1c51bac4fbe04ea34d5ce38471c13d5a3f0759e60cf21d67e846b00feb8316e70f32cb8dc6b74d09f0901ffc83d5f41b1a06da6d34790ef13e4cefcad45 SHA512 f955957eec4b95cc9337d331bba3bba52b4754b301cf86cd974601e64eb20c2424023b19be89a224661fe2e185de646cd3d0d00705b6b5cbd139856c9443a247
DIST pyo3-0.29.2.crate 1255741 BLAKE2B 5187b7dc0f0b2b1441b451850f442a9cf7b8e65baab3c94996be80e39543350ce8739baccb2df0caae1049a4cf744274e4ca9a9d752887d09df5c03e380d42b0 SHA512 85326462a932fd49441f320a879192306a7a6f3a66468ca468fefdb3dff9a530b7895010f156c8c3b125279b94dd304b72825fd4bbdcaeba8e3a58bd8cdcc929
DIST pyo3-build-config-0.28.3.crate 35961 BLAKE2B 61a0101913c6d563721049ca99256c2aefd89b017a7e18c82f4a6aceca0aefeaa71fd559cd43adfb5034ce076c904e5188f8f73961ea217287fbfd12caab9401 SHA512 78f85696901b16540d42187d10e888bd929b9f23415faeb73f9798abda1af3506a308145dd4113b070521271c72624d7930fb4b19bad25aa1afd3082030c9126
diff --git a/dev-python/pydantic/pydantic-2.14.1.ebuild b/dev-python/pydantic/pydantic-2.14.1.ebuild
new file mode 100644
index 000000000000..372986ba345e
--- /dev/null
+++ b/dev-python/pydantic/pydantic-2.14.1.ebuild
@@ -0,0 +1,234 @@
+# 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_{13..14} )
+
+PYDANTIC_CORE_PV=2.50.${PV##*.}
+RUST_MIN_VER="1.88.0"
+CRATES="
+ ahash@0.8.12
+ aho-corasick@1.1.3
+ autocfg@1.3.0
+ base64@0.23.1
+ bitflags@2.9.1
+ bitvec@1.0.1
+ bumpalo@3.19.0
+ cfg-if@1.0.0
+ displaydoc@0.2.5
+ enum_dispatch@0.3.13
+ foldhash@0.2.0
+ form_urlencoded@1.2.2
+ funty@2.0.0
+ getrandom@0.3.3
+ hashbrown@0.17.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.16.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.18.5
+ 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.107
+ pyo3-build-config@0.29.2
+ pyo3-ffi@0.29.2
+ pyo3-macros-backend@0.29.2
+ pyo3-macros@0.29.2
+ pyo3@0.29.2
+ quote@1.0.44
+ r-efi@5.2.0
+ radium@0.7.0
+ regex-automata@0.4.18
+ regex-syntax@0.8.11
+ regex@1.13.1
+ serde@1.0.229
+ serde_core@1.0.229
+ serde_derive@1.0.229
+ serde_json@1.0.151
+ smallvec@1.16.2
+ 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
+ syn@3.0.6
+ 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.4
+ 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.16.0[${PYTHON_USEDEP}]
+ >=dev-python/typing-inspection-0.4.4[${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_crate_unpack
+ cargo_gen_config
+}
+
+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
+ tests/test_docstrings.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
+ cargo_src_test
+ epytest -o xfail_strict=False -o addopts=
+ cd - 2>/dev/null || die
+
+ epytest -o strict=False
+}