diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-06-13 05:58:35 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-06-13 05:58:35 +0200 |
commit | 6e7025d3defbfa86b0fa6c970ab0dbbf030afaf8 (patch) | |
tree | 2fbb91c0953baeec0d7644132967d56a3ead10ba /dev-python | |
parent | dev-python/openpyxl: Bump to 3.1.4 (diff) | |
download | gentoo-6e7025d3defbfa86b0fa6c970ab0dbbf030afaf8.tar.gz gentoo-6e7025d3defbfa86b0fa6c970ab0dbbf030afaf8.tar.bz2 gentoo-6e7025d3defbfa86b0fa6c970ab0dbbf030afaf8.zip |
dev-python/pydantic-core: Bump to 2.19.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pydantic-core/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pydantic-core/pydantic-core-2.19.0.ebuild | 155 |
2 files changed, 157 insertions, 0 deletions
diff --git a/dev-python/pydantic-core/Manifest b/dev-python/pydantic-core/Manifest index e88562dc4127..a57f44e64bdc 100644 --- a/dev-python/pydantic-core/Manifest +++ b/dev-python/pydantic-core/Manifest @@ -23,6 +23,7 @@ DIST lexical-parse-float-0.8.5.crate 180161 BLAKE2B 881e4db32a21c26a1919fd1373ae DIST lexical-parse-integer-0.8.6.crate 33647 BLAKE2B a0ebd7a51c271a163796b0f55bb85e16830bf06e26e3f10d9b13dc5b65af590c77f47fb64360a8738c5ad4be6e6932d58e83e1594a80c067859645c35b907c53 SHA512 e9a814d2928bf5bb2d9dce53e26c65356191c9e21c3aa0e674d58ed879aa52293272f3897f64372d996a3f8c471b0f59348ad48f15a21c2f35ed15f522ac2daa DIST lexical-util-0.8.5.crate 85152 BLAKE2B 42a968c6f9d20cb4cb10906399d37d6581b425eadb31439fec4a71395819133249c4fb75b1d962100e77ba35b6f6b4cd428d5b5c161b405b22333ee390e671a6 SHA512 449c7f2a22c109cd179937c36e14d91c742e1a837a85fcf4fb58c21f05317511d1281b564d216a34760ae54a0df2d0ff5caf49da4aa9d43a8d87fcec0033cc39 DIST libc-0.2.147.crate 686772 BLAKE2B ab2f0c65d071d46b8b88149add1c8429237ef6d9e0563d56ee1adbf23e6147dbb57fb68fbd02498f8ec75327693237a47e5e5259615ce8b0d5ed7a03bbf4fffb SHA512 bfb3c230b59d623b98726f92b7c3f897b47ba3d22fe9834c15f5b4c1b662289aba35a0ae3acfc704ad74696db8c691ee007b9cc6fa03ae65a18eb6bedc81931e +DIST libc-0.2.155.crate 743539 BLAKE2B 42cdcf8d4a187383548b1f09d404474f168916d626d614463fe10a1fd886e972e1caf6297e75445214af3f31fe631d0927e54ec1cdc63e20082b3587e38dce16 SHA512 05354bba532b8338bda1f88f12c7f3893429734a06e33925fca2b99d49548ae5216e2cd84e782d2368a2dfef20b0e035e2dcad8dd13ede7119462a8c639b2807 DIST lock_api-0.4.10.crate 26713 BLAKE2B 113adf8554c65e9782e8fd0360d0398567dfbfddb1fea4928cc152fbab98dbe086e42b81170f6f5c333d61dd3261e8a1ebfbaed786e6bf6378e6afde6d7f9e5c SHA512 ffe8cad8099bc382832181c1ff95e0935993491f247114604201be7d4ddf8402fd4db8fd6499c611f95fbce7d57dc3d3738eddfab31c52f50ab8709e549697db DIST memchr-2.6.3.crate 94377 BLAKE2B 5f1603397d6703ddd9a1e68429cb6e9dae9021e14692c1e084f3b5c82d36645a1fa930c7a76b97df8e1919402fa7e1c621969ce85ce20c82b3087104afe18f25 SHA512 8d5e1425ea702a0950c95271dfd2e81610731496f77af0d683536b074a22922a7d7ec6da41577487d1d658e3b27257b7d1e142761b523e68760a2f5f24f049bc DIST memoffset-0.9.0.crate 9033 BLAKE2B 19090c1af8b8cf54a2cf7593748aff4d3dc685ec7080aa476139c1721ef71555495e1bc513b1efaddc7e7702f83e0e1c2a8f71ff40009d266539484c9297e0ed SHA512 2f04f9b6fed31e94388c18162ad275897a835df7b9ac827f4df0f4b0ecf71064ef247f7ad11dbc27d7a6d448984a0f29d1c000e3c8d5fa6e121fa9571770ec55 @@ -38,6 +39,7 @@ DIST proc-macro2-1.0.76.crate 45660 BLAKE2B 40b538d9d9fec10b9e4b147ce0a86efb10fe DIST pydantic_core-2.18.2.tar.gz 383446 BLAKE2B 59e5a7f5c9fc911532997bf8a5f0937dcc26dd4d7e8b775bdbd9fd18ffcf2ade34686d159d2b7770a436f3b11fad5533cb556f459bc927fe5c4f33e3460423ee SHA512 d771815ac52e6aeb1779e108f7571e72d302e0b74d38f040d40eaa210259763cbbbf339824e3b35e827d6f0e2e00d7a1c019110ee93fb6908865a47fbe8a6890 DIST pydantic_core-2.18.3.tar.gz 384545 BLAKE2B 6aaa56613925ba97e193b33ab409d4cfb6c539da1951d708dd4eb866d4f173a2ed9a58f03858501351833c8cd0bbb85e52ac7fcf48d3b8e621832af90f6f7cde SHA512 b53abe36247b8289650023a624953f4eb6f84273ccf85dfa2dcaa1c786e2d416bd296b28749787d4318712d05556567c1f3222e85f0e8996b41b38994e001a8d DIST pydantic_core-2.18.4.tar.gz 385098 BLAKE2B 6bea502397c327f38a000e9ea3b59b7d7f9fde5336562a081c6cdf88d92fe5e420eecec696ee432f1c6c5ec5dad8173f250897c4ae681a367ad28617724843f0 SHA512 01bdf79a79468e2a6a66f41830b98dc0adfb6d87b221e57e1da5a27b4068dea906aa987b9a7eca3bdc107e97e6bfa9ea164c527bbe2ceb683419ef147747b786 +DIST pydantic_core-2.19.0.tar.gz 385827 BLAKE2B 353c01dcef56709259e679d10d6b2397e5f90d4c734bbd31bfb6bddfd6011a2f74df4bcabb2a1a3f6a7ba9d0b54d693260d445d8ab6795e28185f7d66c823567 SHA512 779e31900ed80c922c7e168f1906795d5073f5aae86abd74af8cf54a53fc366504d42b6779665e59f0f29ea3f4005ed134403bbb5726f90b44b165118ce569bb DIST pyo3-0.21.1.crate 503776 BLAKE2B a042478e4d4fbff9f40eac1b09c2a0fd4af54a751ca16d3bcbaaefc417ef88066c2cbf0cb758dcada9e36c378007081fb9ad0f6bb36afb2622fdf7b3ba36934e SHA512 6bf1c99b7c0c44ece16b3298f1090891cac2994e25730da8a82981f2296bc2d260b61df08897a2cd6c27c6e90deb70e4c08388fc70eeea6dea4b5cc451ed9598 DIST pyo3-0.21.2.crate 504574 BLAKE2B 1b8bf374d1b61e3e4bedce6344338126051a6d951ea87d258e5ed92d4c0e13b0202f2e7e56500277c54743dd16c9b4587f436cf2058567501c8a9ac7c6b6c17a SHA512 5f88cda423e82b62698a74ceaa31fc27e5c1f1d417928accddb2e00337d163fda622f774ae6e24c1cb73c467d6b01e9a2ba866e4454338b1fbfc892ae14ffc53 DIST pyo3-build-config-0.21.1.crate 30540 BLAKE2B 4019892096ee02c25ec6484eb56da12990fc84be5c5173f524e88e8b18e5b1b113d0db1962aff44253519bd1b5f3d4f01512ba86441927c19b04911d8282a039 SHA512 9eb4fbef1015deb1d7a414181926b6b4e44acc2347379783f2fe28e212986e62bb7e36d214d3bed613e9f213a9882084af9012042d9047846f7f4948f64112de diff --git a/dev-python/pydantic-core/pydantic-core-2.19.0.ebuild b/dev-python/pydantic-core/pydantic-core-2.19.0.ebuild new file mode 100644 index 000000000000..878eefe9c51b --- /dev/null +++ b/dev-python/pydantic-core/pydantic-core-2.19.0.ebuild @@ -0,0 +1,155 @@ +# 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..12} ) + +CRATES=" + ahash@0.8.10 + aho-corasick@1.0.2 + autocfg@1.1.0 + base64@0.21.7 + bitflags@1.3.2 + bitvec@1.0.1 + cc@1.0.79 + cfg-if@1.0.0 + enum_dispatch@0.3.13 + equivalent@1.0.1 + form_urlencoded@1.2.1 + funty@2.0.0 + getrandom@0.2.10 + hashbrown@0.14.3 + heck@0.4.1 + idna@0.5.0 + indexmap@2.2.2 + indoc@2.0.4 + itoa@1.0.8 + jiter@0.4.1 + lexical-parse-float@0.8.5 + lexical-parse-integer@0.8.6 + lexical-util@0.8.5 + libc@0.2.155 + lock_api@0.4.10 + memchr@2.6.3 + memoffset@0.9.0 + num-bigint@0.4.4 + num-integer@0.1.45 + num-traits@0.2.16 + once_cell@1.18.0 + parking_lot@0.12.1 + parking_lot_core@0.9.8 + percent-encoding@2.3.1 + portable-atomic@1.6.0 + proc-macro2@1.0.76 + pyo3-build-config@0.21.2 + pyo3-ffi@0.21.2 + pyo3-macros-backend@0.21.2 + pyo3-macros@0.21.2 + pyo3@0.21.2 + python3-dll-a@0.2.9 + quote@1.0.35 + radium@0.7.0 + redox_syscall@0.3.5 + regex-automata@0.4.5 + regex-syntax@0.8.2 + regex@1.10.4 + rustversion@1.0.13 + ryu@1.0.14 + scopeguard@1.1.0 + serde@1.0.203 + serde_derive@1.0.203 + serde_json@1.0.116 + smallvec@1.13.2 + speedate@0.14.0 + static_assertions@1.1.0 + strum@0.25.0 + strum_macros@0.25.3 + strum_macros@0.26.1 + syn@2.0.48 + tap@1.0.1 + target-lexicon@0.12.9 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + unicode-bidi@0.3.13 + unicode-ident@1.0.10 + unicode-normalization@0.1.22 + unindent@0.2.3 + url@2.5.0 + uuid@1.8.0 + version_check@0.9.4 + wasi@0.11.0+wasi-snapshot-preview1 + windows-targets@0.48.1 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_msvc@0.48.0 + windows_i686_gnu@0.48.0 + windows_i686_msvc@0.48.0 + windows_x86_64_gnu@0.48.0 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_msvc@0.48.0 + wyz@0.5.1 + zerocopy-derive@0.7.32 + zerocopy@0.7.32 +" + +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-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 +} |