commit:     1781b5329b445d84c8738a6fc7deb71db708cc73
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  7 04:12:16 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar  7 04:40:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1781b532

dev-python/pydantic: Bump to 2.11.0_beta1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pydantic/Manifest                     |  1 +
 dev-python/pydantic/pydantic-2.11.0_beta1.ebuild | 71 ++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/dev-python/pydantic/Manifest b/dev-python/pydantic/Manifest
index fc99c1b3c37f..cf2f5c12bc62 100644
--- a/dev-python/pydantic/Manifest
+++ b/dev-python/pydantic/Manifest
@@ -1,2 +1,3 @@
 DIST pydantic-2.10.6.tar.gz 761681 BLAKE2B 
1ddb057cd40f50d09dc870aae937bc4d5d41529601c26b84bbd5223d75adca43e14e779ef40ef88dbeab3dc66ae960b662a3244ffa38bf8718d6f9d50b966aed
 SHA512 
69c5cdfb9047875497cf2ac0107f0aaa8d1d91a354d514277e913cc13081e1a76f72a154b50339c95240c82d2a262f4b8dcf71c1e5762449bd344054dba449ce
 DIST pydantic-2.11.0a2.tar.gz 768863 BLAKE2B 
2da69490f8dc711e3835a902789cce9fac9a6eba5d827bd8efa7ea8498a5661dd31a17734408d693d78a0b0588170302c76905228aa05dd771a62f581862971c
 SHA512 
9ad26a85c659b5b5d76c1ff7b9267c641deb91b5f3f4c6f65e1ef4035dc73599e300c03b76770ec958847f89040e38bdad87f4119c585d159e95920805c826b7
+DIST pydantic-2.11.0b1.tar.gz 774826 BLAKE2B 
047f4075760fa679b8e183c5450c3cd423d17672372b9c306a7e1e3e8fc4ce087c781aa905924659ca6be0cfdba6614ce04028c8715156b6fa297c323d68cef3
 SHA512 
0eda99f3a296a3dee7db0bd65918a97780fdb19850b6138405fb2ed320fb4efb7d484b2c1a2fa1b3199684c49917f30c6bd7abb60d594d7e760fdcf2eda7f9c7

diff --git a/dev-python/pydantic/pydantic-2.11.0_beta1.ebuild 
b/dev-python/pydantic/pydantic-2.11.0_beta1.ebuild
new file mode 100644
index 000000000000..9cb3b2647eb3
--- /dev/null
+++ b/dev-python/pydantic/pydantic-2.11.0_beta1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Data parsing and validation using Python type hints"
+HOMEPAGE="
+       https://github.com/pydantic/pydantic/
+       https://pypi.org/project/pydantic/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=dev-python/annotated-types-0.6.0[${PYTHON_USEDEP}]
+       ~dev-python/pydantic-core-2.31.1[${PYTHON_USEDEP}]
+       >=dev-python/typing-extensions-4.12.2[${PYTHON_USEDEP}]
+       >=dev-python/typing-inspection-0.4.0[${PYTHON_USEDEP}]
+       dev-python/tzdata[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}]
+       test? (
+               $(python_gen_cond_dep '
+                       dev-python/cloudpickle[${PYTHON_USEDEP}]
+               ' 'python3*' pypy3)
+               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/pytest-mock[${PYTHON_USEDEP}]
+               dev-python/pytz[${PYTHON_USEDEP}]
+               dev-python/rich[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       sed -i -e '/benchmark/d' pyproject.toml || die
+       distutils-r1_src_prepare
+}
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # -Werror, sigh
+               tests/test_types_typeddict.py::test_readonly_qualifier_warning
+       )
+       local EPYTEST_IGNORE=(
+               # require pytest-examples
+               tests/test_docs.py
+               # benchmarks
+               tests/benchmarks
+       )
+
+       if ! has_version "dev-python/cloudpickle[${PYTHON_USEDEP}]"; then
+               EPYTEST_IGNORE+=(
+                       tests/test_pickle.py
+               )
+       fi
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest -p pytest_mock
+}

Reply via email to