From 20deac35b03e3e15d55e2cfd0236308f20bead59 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 5 Jul 2023 10:11:02 +0100 Subject: gentoo auto-resync : 05:07:2023 - 10:11:01 --- dev-python/pydantic/Manifest | 6 +- dev-python/pydantic/pydantic-1.10.11.ebuild | 91 +++++++++++++++++++++++++++ dev-python/pydantic/pydantic-2.0.1.ebuild | 46 ++++++++++++++ dev-python/pydantic/pydantic-2.0_beta3.ebuild | 49 --------------- 4 files changed, 141 insertions(+), 51 deletions(-) create mode 100644 dev-python/pydantic/pydantic-1.10.11.ebuild create mode 100644 dev-python/pydantic/pydantic-2.0.1.ebuild delete mode 100644 dev-python/pydantic/pydantic-2.0_beta3.ebuild (limited to 'dev-python/pydantic') diff --git a/dev-python/pydantic/Manifest b/dev-python/pydantic/Manifest index 09bc95bdff14..184a89edece7 100644 --- a/dev-python/pydantic/Manifest +++ b/dev-python/pydantic/Manifest @@ -1,7 +1,9 @@ +DIST pydantic-1.10.11.gh.tar.gz 766203 BLAKE2B 5ab426a805a471baac409c82d5a0cdaa9eae0bc46c0c0643ab653db68ccd5bd6db2c2e6aa12113f513e35d590b291986d463e776515f495991e9818541ab2553 SHA512 494e692781dd8fe3980e06ba975fa0c86ad32e36bffead8c836e1680ff3c43de458ef5a344182950060fc3616208d82ad77fd9098811384208f25a9b72c0fe42 DIST pydantic-1.10.9.gh.tar.gz 765868 BLAKE2B 802c542d75b41ff2926215bf4f6bd68a906d581db7b08ed85577f9021d259717f3ef8dbacfe381723aa042aab8720ad182c57fee188f2436b33d21164e24ba23 SHA512 d376a302eac3427cdc8da0ed2fab01c0b5e7a059447777a53c394a60dac5fa0066488be8553022bb5aa89367d5a2e80e5d6e3cb39d9272843718dd07f6acd11e +DIST pydantic-2.0.1.tar.gz 578758 BLAKE2B 1f330806462cfbb60d4c7dac0a682e191fcdb8e4c75b36603ec7acd8115b625123cf2806248b41e1b9ac5395ca412801180db3cea7a64239ea91c59db19c71dd SHA512 cec0ab3fbe1120806e8821296b65e35c3b8711b4bb2b1d45bcf506964678b6087c5f463ad2332b19ab554f0b04ee7b4fc11f9caa6d292442fe40cdc19dfb4053 DIST pydantic-2.0.tar.gz 572748 BLAKE2B 611bb31065c1016d18137c0b5bfb0c7730243f727c1ffa3e3264f78fe750f31832d7388c177f59e0a676fa1eca7fc102e425fef59f97dc852c17b400723efc63 SHA512 830f5379f623e128f23f6d0672f0005a8b184b646e162be67fc08008f75dff53012c1576f0530ef9f6723ac664cfd662432de8f35cbcf98963ed8a680d697ce9 -DIST pydantic-2.0b3.tar.gz 543489 BLAKE2B 89faa3ca4187840ad2fa8025bfef8fba265eaf88e31a75751aa619e1235af08e33aa3b7a713da9e69119a43316da893b02e669d3e704781f77fe94598db40410 SHA512 db6690d15f91b635f0a4002f81cb9ba15e625ece4172bd355e5aef7058f6f385d0b3d1f7e2cab3e25aa6a5f48f6455965a1adaa18fc5a2ca5845c09804c9a3dd +EBUILD pydantic-1.10.11.ebuild 2525 BLAKE2B 89aa9c383a1118763bac74f3f02294dd55e453ad0dbe1e7a881f06015ad2e3103fd2a5e89bf8a8f963ad102f62f48c799e87d39ffe4359e6c5dc9b6ae54dc840 SHA512 7cd09256359e0a065acf2940c541db31750bbc3cc3b10b4e368797a044deeae3aa31c5d865ea63b0523411a95ae3632400fa7574d672bdbbf400610eeefe6531 EBUILD pydantic-1.10.9.ebuild 2517 BLAKE2B cdc5f751effda60d2a621fd5981fe9466ebae34fc939f0ae0148d999fc45b2a5e19cd5d761c9c7ef0df4d4f1b7c10c6a4995d53777cbe384b64035e5780441ee SHA512 e7eea417643b819baeb949ecab9005c5b8b3db85e07a9f66bb6fb9ebd619052ee5e88f67d3916f85952539604d516b940a5f8d1fac4b1d1e704f2fb336961c62 +EBUILD pydantic-2.0.1.ebuild 1021 BLAKE2B e765491e42f70a3f8ccaad14398d9db98d757bd9da15f60eb7bf46abb8a115bc56a04d3767a0744e539246bb469ae3b5d3fc1560a2fb4f7e743cbc3dea9a7746 SHA512 5b9497e74c27d13731ef321c754587ccaf3ddc892bb12eae960aaecf33c1974522ce2230909d2f7e2912a4aa0ae099553524b9f21d98174d9b708b7740906812 EBUILD pydantic-2.0.ebuild 1021 BLAKE2B 3dd79f2add58a30c2e3e9e071e6228d6738f16c2b16956e63356bb3b463028cf05086f978832b0d5c48e1a7a39013f25b407105c6c57e66090dd31c2b6a49c74 SHA512 41ae1cdeb92f30a17b17e20284454ec8dc22351365066de8524714636389282b591f144bff7236b1922ac67b715b20ff4a0db8b436704452804346dd686f764f -EBUILD pydantic-2.0_beta3.ebuild 1095 BLAKE2B 41cc4fca081030d79896b9972aad942955302f84ee91d932e43ad49afff9054f73c670b0c4e337adb734a28c0ce26b9558e584dd6e3282526f70c60124e20f65 SHA512 c0b88b81cd7ce744beb422a931d5430e0f12badff7650b861adf433fc24bf8509e0c1fdc6324e1ed73e73ac04cf36493461a4dcac6bc1d0ac1023adfde5c5c82 MISC metadata.xml 630 BLAKE2B e765d13d92f634fcd09ce51499a64149ca11f46c8b45d9a41c35382ed84686326b5dd9aeeb0d780d34f38f0cf99b08de6269f1671642aeb389bfd9b8abe18dba SHA512 43f108a909059554ea0fba2055739d23d889f1cf5e01c8f54c4e926062055d042b77412faa9f60af41697c155914907c87455361bb0d32edfdfcf5ff8ce1b2eb diff --git a/dev-python/pydantic/pydantic-1.10.11.ebuild b/dev-python/pydantic/pydantic-1.10.11.ebuild new file mode 100644 index 000000000000..742af7f9f99e --- /dev/null +++ b/dev-python/pydantic/pydantic-1.10.11.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 + +MY_P=${P/_beta/b} +DESCRIPTION="Data parsing and validation using Python type hints" +HOMEPAGE=" + https://github.com/pydantic/pydantic/ + https://pypi.org/project/pydantic/ +" +SRC_URI=" + https://github.com/pydantic/pydantic/archive/v${PV/_beta/b}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="native-extensions" + +RDEPEND=" + >=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}] +" +BDEPEND=" + native-extensions? ( + =dev-python/email-validator-1.2.1[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/python-dotenv[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/CFLAGS/d' setup.py || die + distutils-r1_src_prepare +} + +python_compile() { + if [[ ${EPYTHON} == pypy3 ]] || ! use native-extensions; then + # do not build extensions on PyPy to workaround + # https://github.com/cython/cython/issues/4763 + local -x SKIP_CYTHON=1 + fi + distutils-r1_python_compile +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_mock + + local EPYTEST_DESELECT=( + # flaky test, known upstream + tests/test_hypothesis_plugin.py::test_can_construct_models_with_all_fields + # mypy linting causes regressions with new mypy versions + tests/mypy + ) + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + tests/test_private_attributes.py::test_private_attribute + tests/test_private_attributes.py::test_private_attribute_annotation + tests/test_private_attributes.py::test_private_attribute_factory + tests/test_private_attributes.py::test_private_attribute_multiple_inheritance + tests/test_private_attributes.py::test_underscore_attrs_are_private + ) + ;; + python3.12) + EPYTEST_DESELECT+=( + tests/test_abc.py::test_model_subclassing_abstract_base_classes_without_implementation_raises_exception + tests/test_generics.py::test_partial_specification_name + tests/test_generics.py::test_parse_generic_json + tests/test_types.py::test_secretfield + ) + ;; + esac + rm -rf pydantic || die + epytest +} diff --git a/dev-python/pydantic/pydantic-2.0.1.ebuild b/dev-python/pydantic/pydantic-2.0.1.ebuild new file mode 100644 index 000000000000..89ea9f054c00 --- /dev/null +++ b/dev-python/pydantic/pydantic-2.0.1.ebuild @@ -0,0 +1,46 @@ +# 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-2.0.2[${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=() + local EPYTEST_IGNORE=( + # require pytest-examples + tests/test_docs.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_mock +} diff --git a/dev-python/pydantic/pydantic-2.0_beta3.ebuild b/dev-python/pydantic/pydantic-2.0_beta3.ebuild deleted file mode 100644 index 02674668bc33..000000000000 --- a/dev-python/pydantic/pydantic-2.0_beta3.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# 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..12} ) - -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.39.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 -} -- cgit v1.2.3