From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A7E15158083 for ; Sat, 21 Sep 2024 07:41:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C7BDE29E0; Sat, 21 Sep 2024 07:41:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 602D6E29E2 for ; Sat, 21 Sep 2024 07:41:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F3EAF343164 for ; Sat, 21 Sep 2024 07:41:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C0DF2807 for ; Sat, 21 Sep 2024 07:41:06 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1726904452.cf80c249acaf582a1c5f0b1030184451319142ee.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pydantic-core/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pydantic-core/Manifest dev-python/pydantic-core/pydantic-core-2.24.0.ebuild X-VCS-Directories: dev-python/pydantic-core/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: cf80c249acaf582a1c5f0b1030184451319142ee X-VCS-Branch: master Date: Sat, 21 Sep 2024 07:41:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fb207bfb-ae8f-41bc-8d7d-43cad117beb0 X-Archives-Hash: 0b73921e4b2550a82f261789d37c4eee commit: cf80c249acaf582a1c5f0b1030184451319142ee Author: Michał Górny gentoo org> AuthorDate: Sat Sep 21 06:32:11 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Sep 21 07:40:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf80c249 dev-python/pydantic-core: Bump to 2.24.0 Signed-off-by: Michał Górny gentoo.org> dev-python/pydantic-core/Manifest | 1 + .../pydantic-core/pydantic-core-2.24.0.ebuild | 167 +++++++++++++++++++++ 2 files changed, 168 insertions(+) diff --git a/dev-python/pydantic-core/Manifest b/dev-python/pydantic-core/Manifest index 0b8154a32331..c79088a134f6 100644 --- a/dev-python/pydantic-core/Manifest +++ b/dev-python/pydantic-core/Manifest @@ -76,6 +76,7 @@ DIST pydantic_core-2.23.1.tar.gz 399302 BLAKE2B 36dbdb817ae44aa19572c85f380499ae DIST pydantic_core-2.23.2.tar.gz 401901 BLAKE2B 5cb8bd0a52cb32a226d7dc711bc6db1b33d8e5236069cc3f8881123cc0387e37c88aa6d898c434490c97814dc2df0296979d6abac52714f883159984d2f215bc SHA512 65ac846c6028e77cf53a95be2d45ffc1ef8bd691d1738c13f96b1823853f282bf64e876cc1e02ae99a967076578b0ba3c73572b441034850e9d49a1242e1bfa1 DIST pydantic_core-2.23.3.tar.gz 402277 BLAKE2B 4418f6972e3d31d1428a5ed6a653d0eac6cb5067c102327268ab0f72b23410927990274aa9fa1c2ea8e14deb4dcd689a559f99edfeffdef2b05e0404dd51c1f6 SHA512 216ad4b2d32276ef89da842271bc9a6149e98782391e2a4159983b48377dd56960021bf89eea62e9a82e2bafa9eff1dc500ddf14699fa727f868284579a38334 DIST pydantic_core-2.23.4.tar.gz 402156 BLAKE2B af899e149693907542296b5b4fa5f982d2dca5c090331703212aabbbce0a8e0badca3947affa9e42998949ebd18b1ffc2ad9904b47e130bbe7e90150c32bc527 SHA512 c7c9a303ff3c751108622f804f812f3793ad93a95e560b0d6b0a866c3bd41ed7bfdbcd87483f37ad3849969c72adde24083d1a9015ebd610847a7fa6d4068e24 +DIST pydantic_core-2.24.0.tar.gz 405714 BLAKE2B 4ce0a27cd35d6fa41adfe34734b73851733ca5f02971efdcc3b22f97736422dcb4c71dd743a79a61cd2b0545aaf23e2868629534728e8019ab4fc5b3033e2a05 SHA512 fef249007a61fc585f6ebeb9cab7922b33770969c1afba70cae4deb406009125664a0b3347b14198f7d0c3611287e68ee4ad41ed70a065ca66c93c90ff5f4787 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.24.0.ebuild b/dev-python/pydantic-core/pydantic-core-2.24.0.ebuild new file mode 100644 index 000000000000..a641f653d21d --- /dev/null +++ b/dev-python/pydantic-core/pydantic-core-2.24.0.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=" + ahash@0.8.11 + aho-corasick@1.1.3 + autocfg@1.3.0 + base64@0.22.1 + bitvec@1.0.1 + cc@1.0.101 + cfg-if@1.0.0 + displaydoc@0.2.5 + enum_dispatch@0.3.13 + equivalent@1.0.1 + form_urlencoded@1.2.1 + funty@2.0.0 + getrandom@0.2.15 + hashbrown@0.14.5 + 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@0.5.0 + idna@1.0.2 + indexmap@2.2.6 + indoc@2.0.5 + itoa@1.0.11 + jiter@0.5.0 + lexical-parse-float@0.8.5 + lexical-parse-integer@0.8.6 + lexical-util@0.8.5 + libc@0.2.155 + litemap@0.7.3 + 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.19.0 + percent-encoding@2.3.1 + portable-atomic@1.6.0 + proc-macro2@1.0.86 + pyo3-build-config@0.22.2 + pyo3-ffi@0.22.2 + pyo3-macros-backend@0.22.2 + pyo3-macros@0.22.2 + pyo3@0.22.2 + python3-dll-a@0.2.10 + quote@1.0.36 + radium@0.7.0 + regex-automata@0.4.7 + regex-syntax@0.8.4 + regex@1.10.6 + rustversion@1.0.17 + ryu@1.0.18 + serde@1.0.209 + serde_derive@1.0.209 + serde_json@1.0.128 + smallvec@1.13.2 + speedate@0.14.4 + stable_deref_trait@1.2.0 + static_assertions@1.1.0 + strum@0.26.3 + strum_macros@0.26.4 + syn@2.0.68 + synstructure@0.13.1 + tap@1.0.1 + target-lexicon@0.12.14 + tinystr@0.7.6 + tinyvec@1.6.1 + tinyvec_macros@0.1.1 + unicode-bidi@0.3.15 + unicode-ident@1.0.12 + unicode-normalization@0.1.23 + unindent@0.2.3 + url@2.5.2 + utf16_iter@1.0.5 + utf8_iter@1.0.4 + uuid@1.10.0 + version_check@0.9.5 + wasi@0.11.0+wasi-snapshot-preview1 + write16@1.0.0 + writeable@0.5.5 + wyz@0.5.1 + yoke-derive@0.7.4 + yoke@0.7.4 + zerocopy-derive@0.7.34 + zerocopy@0.7.34 + zerofrom-derive@0.1.4 + zerofrom@0.1.4 + zerovec-derive@0.10.3 + zerovec@0.10.4 +" + +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 +}