From 103c054b7094baf2ba01af372f95bde22c42915d Mon Sep 17 00:00:00 2001 From: Derek Straka Date: Tue, 26 Sep 2023 22:04:23 +0000 Subject: python3-pydantic: Update version 1.10.7 -> 2.4.1 Update build to use hatchling Add dependency for README generation Verify the license terms and update the checksum Note from upstream ======= Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1. If you're using Pydantic V1 you may want to look at the pydantic V1.10 Documentation or, 1.10.X-fixes git branch. Pydantic V2 also ships with the latest version of Pydantic V1 built in so that you can incrementally upgrade your code base and projects: from pydantic import v1 as pydantic_v1. Signed-off-by: Derek Straka Signed-off-by: Khem Raj (cherry picked from commit 4570e4aa474e1f1517eb6d298b723bbcc57598e1) Signed-off-by: Armin Kuster --- .../python/python3-pydantic_1.10.7.bb | 21 -------------------- .../python/python3-pydantic_2.4.1.bb | 23 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 21 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pydantic_1.10.7.bb create mode 100644 meta-python/recipes-devtools/python/python3-pydantic_2.4.1.bb (limited to 'meta-python/recipes-devtools') diff --git a/meta-python/recipes-devtools/python/python3-pydantic_1.10.7.bb b/meta-python/recipes-devtools/python/python3-pydantic_1.10.7.bb deleted file mode 100644 index 9d59cf8598..0000000000 --- a/meta-python/recipes-devtools/python/python3-pydantic_1.10.7.bb +++ /dev/null @@ -1,21 +0,0 @@ -SUMMARY = "Data validation and settings management using Python type hinting" -HOMEPAGE = "https://github.com/samuelcolvin/pydantic" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=2c02ea30650b91528657db64baea1757" - -inherit pypi setuptools3 - -SRC_URI[sha256sum] = "cfc83c0678b6ba51b0532bea66860617c4cd4251ecf76e9846fa5a9f3454e97e" - -RDEPENDS:${PN} += "\ - python3-core \ - python3-datetime \ - python3-image \ - python3-io \ - python3-json \ - python3-logging \ - python3-netclient \ - python3-numbers \ - python3-profile \ - python3-typing-extensions \ -" diff --git a/meta-python/recipes-devtools/python/python3-pydantic_2.4.1.bb b/meta-python/recipes-devtools/python/python3-pydantic_2.4.1.bb new file mode 100644 index 0000000000..6d06650eb0 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydantic_2.4.1.bb @@ -0,0 +1,23 @@ +SUMMARY = "Data validation and settings management using Python type hinting" +HOMEPAGE = "https://github.com/samuelcolvin/pydantic" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=09280955509d1c4ca14bae02f21d49a6" + +inherit pypi python_hatchling + +SRC_URI[sha256sum] = "b172505886028e4356868d617d2d1a776d7af1625d1313450fd51bdd19d9d61f" + +DEPENDS += "python3-hatch-fancy-pypi-readme-native" + +RDEPENDS:${PN} += "\ + python3-core \ + python3-datetime \ + python3-image \ + python3-io \ + python3-json \ + python3-logging \ + python3-netclient \ + python3-numbers \ + python3-profile \ + python3-typing-extensions \ +" -- cgit v1.2.3-54-g00ecf