py-annotated-types: added version 0.6.0

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.
This commit is contained in:
adam 2024-01-30 21:04:34 +00:00
parent c9bc9258b8
commit d9db80b5db
5 changed files with 53 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.717 2024/01/26 13:13:45 wiz Exp $
# $NetBSD: Makefile,v 1.718 2024/01/30 21:04:34 adam Exp $
#
COMMENT= Programming languages
@ -233,6 +233,7 @@ SUBDIR+= picoc
SUBDIR+= pict
SUBDIR+= polyml
SUBDIR+= purescript
SUBDIR+= py-annotated-types
SUBDIR+= py-asttokens
SUBDIR+= py-basicproperty
SUBDIR+= py-byterun

View File

@ -0,0 +1,9 @@
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.

View File

@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.1 2024/01/30 21:04:34 adam Exp $
DISTNAME= annotated_types-0.6.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
CATEGORIES= lang python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/annotated-types/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/annotated-types/annotated-types
COMMENT= Reusable constraint types to use with typing.Annotated
LICENSE= mit
TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/pyversion.mk"
.if ${PYTHON_VERSION} < 309
DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.0.0:../../devel/py-typing-extensions
.endif
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -0,0 +1,12 @@
@comment $NetBSD: PLIST,v 1.1 2024/01/30 21:04:34 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
${PYSITELIB}/annotated_types/__init__.py
${PYSITELIB}/annotated_types/__init__.pyc
${PYSITELIB}/annotated_types/__init__.pyo
${PYSITELIB}/annotated_types/py.typed
${PYSITELIB}/annotated_types/test_cases.py
${PYSITELIB}/annotated_types/test_cases.pyc
${PYSITELIB}/annotated_types/test_cases.pyo

View File

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2024/01/30 21:04:34 adam Exp $
BLAKE2s (annotated_types-0.6.0.tar.gz) = 43bcd5b5e66102afb7063039f880c1ba439c813375ffd81318a1437a03b54a76
SHA512 (annotated_types-0.6.0.tar.gz) = 6b7f6fa23f47758d955822564227173951d6ddd854397b0c996bb6adeadd9caebfab6d193595be17003c1ef0e81a6bd8e20ec8221a70ffa35f9a4414300e788d
Size (annotated_types-0.6.0.tar.gz) = 14670 bytes