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 F085015800D for ; Wed, 5 Jul 2023 07:58:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5568BE0863; Wed, 5 Jul 2023 07:58:08 +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 2FE28E0866 for ; Wed, 5 Jul 2023 07:58:08 +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 3587B34109A for ; Wed, 5 Jul 2023 07:58:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C54D6AD4 for ; Wed, 5 Jul 2023 07:58:04 +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: <1688543876.14a819d46a94a6a598534d56cacd98dfe0100c4d.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.0.2.ebuild X-VCS-Directories: dev-python/pydantic-core/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 14a819d46a94a6a598534d56cacd98dfe0100c4d X-VCS-Branch: master Date: Wed, 5 Jul 2023 07:58:04 +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: 2f9ba5bf-270b-49f1-97c5-ecbf9bfa49bc X-Archives-Hash: 1c8c911e7b7f9ca185114e829988a55d commit: 14a819d46a94a6a598534d56cacd98dfe0100c4d Author: Michał Górny gentoo org> AuthorDate: Wed Jul 5 06:52:27 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jul 5 07:57:56 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14a819d4 dev-python/pydantic-core: Bump to 2.0.2 Signed-off-by: Michał Górny gentoo.org> dev-python/pydantic-core/Manifest | 1 + .../pydantic-core/pydantic-core-2.0.2.ebuild | 134 +++++++++++++++++++++ 2 files changed, 135 insertions(+) diff --git a/dev-python/pydantic-core/Manifest b/dev-python/pydantic-core/Manifest index 68b1f0eb8ea6..783f3165057e 100644 --- a/dev-python/pydantic-core/Manifest +++ b/dev-python/pydantic-core/Manifest @@ -31,6 +31,7 @@ DIST proc-macro2-1.0.56.crate 44454 BLAKE2B b2a1f28979245a784a4b3a0af8cb04bd01ef DIST proc-macro2-1.0.60.crate 44160 BLAKE2B 3cca40d5ffa85607212ea8da63995b35b1d59bf077ad1f708bb08f20a3f3d477e934205008984bf2e947e6e53689192df1d437772c75148e122e0f1f4fe43455 SHA512 2a3d33d2e42e3b7edac7a099dcaf83c43ad47852217424c2bcf8ed5b894292975ef5a11df01ebb3479971e94d5b032b9d043c28bed476d6f7087fb9297fbaac0 DIST pydantic_core-0.39.0.tar.gz 302824 BLAKE2B bc4df1e66113845a5458d27c2408258dc0b0377732a2920d24d3a6f00cb9c7456c4fd9a59bfffcf5774ef9fba62c93e08947daae9fca99e76d537ce9f6de4eb1 SHA512 9221ceb3b944f52c7b8b874148af2c9eeb68088bbc3af53c1b530d002481e0d05eda8d27eaaa468d52509d1ca7338162cc593dc78d9365db829d69b395bffebc DIST pydantic_core-2.0.1.tar.gz 305815 BLAKE2B f57af9abd4f3e7c14f0215485311bcd39cc3369335f742f59cfd6ecd8a9d866bd1f70e592de596bc2c7572e864b33124a8f657ebdff27c1fa57ec8f50a974c6d SHA512 33339cba162b36e346d22b9c130d3e451579fc4beb7b6407628f3108cf29aaf0f15fc066c398d2fc3d9ed451f0512a39df61fbc891b9023fcd39c262659fbce9 +DIST pydantic_core-2.0.2.tar.gz 305778 BLAKE2B ef1e53a44ff9f295a410b0b6f5e3a1183cddcc5376adae2c8c5b87791b0443d6b97cf1129810924adcf46221a2d38b98ded01b3db1d14d064ad6e00069675ac1 SHA512 034eac42feedcd526bff0557a1ef83aa04e0c728b93b3d2831f76472736acd5063b4e541cc64206273ec7b305a38f453cb34e33dc64385f9cf45a5c261ef3c6c DIST pyo3-0.19.0.crate 412659 BLAKE2B f8833d39c3c8318466ee5b9010cbdce1a20f844f15a257ae41c5d8c72f645e0c14e7e5ae0b50a8aebec60afd827cd23d5b5b4b70188531e6f5b89ef191066189 SHA512 9cef7f8a73cfea32661eaf8fd8d5af6ca180e3fd71ac956d9fbb96a1d194f238116e3ab31917b15359e7f6b0b3bc4587437463a4c61bca988f16657a64440919 DIST pyo3-build-config-0.19.0.crate 29172 BLAKE2B 20904ad814ed9a22b801eb7b06851292d50f5716116a5b4a670e8c499878bf6d193525a4579b044ed413823c17ecd1ad0178baae1cab1fe3f431cc9a0f442576 SHA512 3105ce54bff87bef803f30b79d3ab2dbe440d68418f8cdc875f18ceb2bb0d06ed0923cf02af5f8293ca901f40b96c1b99a12a8a8e74813dcf70534d3aec2bfb7 DIST pyo3-ffi-0.19.0.crate 64481 BLAKE2B 1cad9db14e9c14e2aa24eab25439f9d8f7503b5f4c3e8bc9a58370e3d63261898ea678f75d276f9d2eedd5fa90a106f30e7362262619a81bead93bf45673e144 SHA512 9e01b15153c44f13c77c28719d3ab36bb859c4a15dc936af4af3e99f44946b4b4752faf3d2320391735b205ca6c055a43e7f5ac98ce53d281fdf536ce67dfbbe diff --git a/dev-python/pydantic-core/pydantic-core-2.0.2.ebuild b/dev-python/pydantic-core/pydantic-core-2.0.2.ebuild new file mode 100644 index 000000000000..420e5a4a0142 --- /dev/null +++ b/dev-python/pydantic-core/pydantic-core-2.0.2.ebuild @@ -0,0 +1,134 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{10..12} ) + +CRATES=" + ahash@0.8.3 + aho-corasick@0.7.20 + autocfg@1.1.0 + base64@0.13.1 + bitflags@1.3.2 + cc@1.0.79 + cfg-if@1.0.0 + enum_dispatch@0.3.11 + form_urlencoded@1.1.0 + getrandom@0.2.8 + hashbrown@0.12.3 + heck@0.4.1 + idna@0.3.0 + indexmap@1.9.3 + indoc@1.0.9 + itoa@1.0.6 + libc@0.2.140 + libmimalloc-sys@0.1.30 + lock_api@0.4.9 + memchr@2.5.0 + memoffset@0.9.0 + mimalloc@0.1.34 + num-bigint@0.4.3 + num-integer@0.1.45 + num-traits@0.2.15 + once_cell@1.17.1 + parking_lot@0.12.1 + parking_lot_core@0.9.7 + percent-encoding@2.2.0 + proc-macro2@1.0.60 + pyo3-build-config@0.19.0 + pyo3-ffi@0.19.0 + pyo3-macros-backend@0.19.0 + pyo3-macros@0.19.0 + pyo3@0.19.0 + python3-dll-a@0.2.6 + quote@1.0.28 + redox_syscall@0.2.16 + regex-syntax@0.6.29 + regex@1.7.3 + rustversion@1.0.12 + ryu@1.0.13 + scopeguard@1.1.0 + serde@1.0.159 + serde_json@1.0.95 + smallvec@1.10.0 + speedate@0.9.0 + strum@0.25.0 + strum_macros@0.24.3 + strum_macros@0.25.0 + syn@1.0.109 + syn@2.0.18 + target-lexicon@0.12.6 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + unicode-bidi@0.3.13 + unicode-ident@1.0.8 + unicode-normalization@0.1.22 + unindent@0.1.11 + url@2.3.1 + version_check@0.9.4 + wasi@0.11.0+wasi-snapshot-preview1 + windows-sys@0.45.0 + windows-targets@0.42.2 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_msvc@0.42.2 + windows_i686_gnu@0.42.2 + windows_i686_msvc@0.42.2 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_msvc@0.42.2 +" + +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 Apache-2.0-with-LLVM-exceptions MIT Unicode-DFS-2016 +" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/typing-extensions-4.7.1[${PYTHON_USEDEP}] +" +BDEPEND=" + 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}] + >=dev-python/pytz-2022.7.1[${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 + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_IGNORE=( + tests/benchmarks + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + rm -rf pydantic_core || die + epytest -p pytest_mock -p timeout +}