diff options
author | 2023-06-04 18:18:30 +0200 | |
---|---|---|
committer | 2023-06-04 18:56:37 +0200 | |
commit | 96d8051f9a65cd50eef8bebb250e48297e42c76d (patch) | |
tree | 1d7189d7f36b69631e69ad5ed2205484048ef7ec /dev-python/pydantic | |
parent | dev-python/pydantic-core: New package, v0.38.0 (diff) | |
download | gentoo-96d8051f9a65cd50eef8bebb250e48297e42c76d.tar.gz gentoo-96d8051f9a65cd50eef8bebb250e48297e42c76d.tar.bz2 gentoo-96d8051f9a65cd50eef8bebb250e48297e42c76d.zip |
dev-python/pydantic: Early bump to 2.0_beta2
Bump to the 2.0_beta2 prerelease. This version probably breaks stuff.
It depends on dev-python/pydantic-core that segfaults on pypy3 for me
(Rust, sigh). There are also some test failures with Python 3.12
but that's not surprising.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pydantic')
-rw-r--r-- | dev-python/pydantic/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pydantic/pydantic-2.0_beta2.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/pydantic/Manifest b/dev-python/pydantic/Manifest index 13c1421ab749..fe208aff3f09 100644 --- a/dev-python/pydantic/Manifest +++ b/dev-python/pydantic/Manifest @@ -1,2 +1,3 @@ DIST pydantic-1.10.7.gh.tar.gz 903379 BLAKE2B b2dd75a640ca54024a2bf141117a1d738a30a4630bed8f4d0169fc5a6a55ded719727d88c7e78b9a2acc3aec68482e9be8c8bf4776fef668fe4acc3e1fd775df SHA512 948a7935b374719773df50243aed708b3c6789243b9aa0ba239cf1502ddd0e0cec4d701e108f1cc78090c088f3cb1c78b840c39f5e7ad0e61739776f552f284d DIST pydantic-1.10.8.gh.tar.gz 765592 BLAKE2B 0b4cc273ce6fad20baa7c8bd87ef32199cb003f52b8e9aa19eda6359ca0e5c30152c7f25d2bb146ec23027011895cf44d9eb051c6ca609fb00e3d7b5f6089e4e SHA512 3ac41cdf0eb70fb71298131a043966b85387bc953ef2f463ece80728b46251d5d5f66c3f030afc3cdf4527918ae410fcd733a774cbe0c3b7ba9fc806a76378e4 +DIST pydantic-2.0b2.tar.gz 527380 BLAKE2B 214c740ecaed3cf4e7ed1e06d75ce17b37028e41c6a7abc4174b201691e31725123f89430c430a514c59973dc327d2b8fcd21c5ef0a47aaa48fafaf7e322d7a1 SHA512 49cc058c91e48638f9809ca77d9c486e3bdfc05e1546b19ca7e419f41e152998f750cfb58927ad8189913859d27fff68de0e5848599baaf816404e0f58fd6646 diff --git a/dev-python/pydantic/pydantic-2.0_beta2.ebuild b/dev-python/pydantic/pydantic-2.0_beta2.ebuild new file mode 100644 index 000000000000..4160bd9fd827 --- /dev/null +++ b/dev-python/pydantic/pydantic-2.0_beta2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..11} ) + +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="" + +RDEPEND=" + >=dev-python/annotated-types-0.4.0[${PYTHON_USEDEP}] + >=dev-python/pydantic-core-0.38.0[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.6.1[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/hatch-fancy-pypi-readme-22.5.0[${PYTHON_USEDEP}] + test? ( + dev-python/dirty-equals[${PYTHON_USEDEP}] + >=dev-python/email-validator-2.0.0[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # expect -Werror + tests/test_deprecated.py::test_extra_used_as_enum + ) + local EPYTEST_IGNORE=( + # require pytest-examples + tests/test_docs.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_mock +} |