diff mbox series

[meta-python,2/7] python3-annotated-types: add v0.6.0

Message ID 7297f8648cff813d9b0211ad5f17d38c2d56b10e.1701991044.git.ticotimo@gmail.com
State Accepted
Headers show
Series [meta-python,1/7] python3-pydantic-core: add v2.14.5 | expand

Commit Message

Tim Orling Dec. 7, 2023, 11:23 p.m. UTC
Run-time dependency for python3-pydantic

"""
PEP-593 added typing.Annotated as a way of adding context-specific
metadata to existing types, and specifies that Annotated[T, x] should
be treated as T by any tool or library without special logic for x.

This package provides metadata objects which can be used to represent
common constraints such as upper and lower bounds on scalar values and
collection sizes, a Predicate marker for runtime checks, and descriptions
of how we intend these metadata to be interpreted. In some cases, we also
note alternative representations which do not require this package.
"""

References:
https://peps.python.org/pep-0593/

Signed-off-by: Tim Orling <ticotimo@gmail.com>
---
 .../python/python3-annotated-types_0.6.0.bb        | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-annotated-types_0.6.0.bb
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-annotated-types_0.6.0.bb b/meta-python/recipes-devtools/python/python3-annotated-types_0.6.0.bb
new file mode 100644
index 000000000..79cbb66bc
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-annotated-types_0.6.0.bb
@@ -0,0 +1,14 @@ 
+SUMMARY = "Reusable constraint types to use with typing.Annotated"
+DESCRIPTION = ""
+HOMEPAGE = ""
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c6afb13fdc220497ee5cded1e717ed67"
+
+SRC_URI[sha256sum] = "563339e807e53ffd9c267e99fc6d9ea23eb8443c08f112651963e24e22f84a5d"
+
+S = "${WORKDIR}/annotated_types-${PV}"
+PYPI_PACKAGE = "annotated_types"
+
+inherit pypi python_hatchling
+
+RDEPENDS:${PN} = "python3-typing-extensions"