From nobody Sun Jul 09 10:33:27 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QzNlC6Ms9z4lk3d; Sun, 9 Jul 2023 10:33:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QzNlC5vbNz3tDS; Sun, 9 Jul 2023 10:33:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688898807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WfZpiAr9UrPjq5H0H9ComJ6dHmRVxsXmzX4DGUGgl74=; b=Ku3ClBVKchjsA0nh5HV3XnEznlTRma0V5RBBg12XAywUeFRAylqplm+LpYFYK5dx11VFeP T0LBwnznjB7ItWTpMLuq1ngJxvmtpJUZSOnTCLpKXckw19QakUONc6wGzHqugUmfhdn6kw eKecwwpf7HdAijrmE9yKSKJyhFFbBGyk0eq56t9GSbrDVfmiOaH6aX1p38s6T+AjiJz1rn uX8ChU5LJguuurizbJxE9+30UYh2vtxNfxmb0susmSCPNeum5951rJd+twO1JbqOadNbmQ EDNk6iQx/1V5bJllqTPJluFkSN1M6gxZI7pQj6+TzfYkdL9sbOnCXnwQdpgqtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688898807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WfZpiAr9UrPjq5H0H9ComJ6dHmRVxsXmzX4DGUGgl74=; b=LcM3UGzLpr4ydQU2cUfUp4cKNjqFyPiSTi2M3+8OZpSoykRc4Xa6PcMDsv1I5ktuBgefrq gFQa1qvXoV51rZ/XnehKcbfQDQxZmGQa66UCx9EyuapRwvBX3obbB1bZ+Pm6pKOAQvoHrq zxiCi1OD/h8+dzP0ndd+7/iSWKK/Pnk+d0KcWe1A0GI5M+sBZJA6Ck0HKl9KCZSlMeRTRb jjg03RcV662Y2cS4dFAQhzNEsVZ3tvIPTU1ztlm5CYSDm3cPEpEubZtj9lTaTE5uRsf+Pb WE9D57dpq9hMBwzQiScIUE1s6R+rbJvPi7F5hGuy3iFZPqwf3ptqpi7psxKjsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688898807; a=rsa-sha256; cv=none; b=mEkOSqwkrIygSyJ/XNUcT7qt/UOeFDddCwB0uFl1ubvRBsOIBrruO9PmUFP1VPZ9eLdP18 pJ0Lu8js8JcfTqfMm5nt5n0r5ECst+T/euTH5aKCPpHmzfMTAALMpYOfw2HJeWaAZTD5av DH3wWOmTIrXSdfZMM8F9u4ZHLkcGezahp+Xd3dPjKCCjnJFLoZfWcCo1x388z+5CWQ3yGV gBL7rkOC2bc24zGrHC45tKciHqR8T6KzQUd0mhfif2KlFVsMvnjwSXeplXRKaWXj+AKqp8 HouNoBN5DHbNYwe31Kc0yXe87L6MSqjBJAV6dwt8o9hnxA3L0DX3/nQNIh32UQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QzNlC4tclz10Pl; Sun, 9 Jul 2023 10:33:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 369AXRfq055115; Sun, 9 Jul 2023 10:33:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 369AXRkp055114; Sun, 9 Jul 2023 10:33:27 GMT (envelope-from git) Date: Sun, 9 Jul 2023 10:33:27 GMT Message-Id: <202307091033.369AXRkp055114@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: faa87a12d482 - main - devel/py-annotated-types: Add py-annotated-types 0.5.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: faa87a12d4820f18a97af9de9feb19624bf21665 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=faa87a12d4820f18a97af9de9feb19624bf21665 commit faa87a12d4820f18a97af9de9feb19624bf21665 Author: Po-Chuan Hsieh AuthorDate: 2023-07-09 10:10:21 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-07-09 10:10:21 +0000 devel/py-annotated-types: Add py-annotated-types 0.5.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. annotated-types 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. --- devel/Makefile | 1 + devel/py-annotated-types/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-annotated-types/distinfo | 3 +++ devel/py-annotated-types/pkg-descr | 9 +++++++++ 4 files changed, 41 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index efebea912f3e..05762b4586ed 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4204,6 +4204,7 @@ SUBDIR += py-aniso8601 SUBDIR += py-aniso86016 SUBDIR += py-anndata + SUBDIR += py-annotated-types SUBDIR += py-ansi SUBDIR += py-antlr4-python3-runtime SUBDIR += py-anyconfig diff --git a/devel/py-annotated-types/Makefile b/devel/py-annotated-types/Makefile new file mode 100644 index 000000000000..ea62c4d94cfb --- /dev/null +++ b/devel/py-annotated-types/Makefile @@ -0,0 +1,28 @@ +PORTNAME= annotated-types +PORTVERSION= 0.5.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= annotated_types-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Reusable constraint types to use with typing.Annotated +WWW= https://github.com/annotated-types/annotated-types + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 30900 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0.0:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +.include diff --git a/devel/py-annotated-types/distinfo b/devel/py-annotated-types/distinfo new file mode 100644 index 000000000000..db629c8ac445 --- /dev/null +++ b/devel/py-annotated-types/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1688166004 +SHA256 (annotated_types-0.5.0.tar.gz) = 47cdc3490d9ac1506ce92c7aaa76c579dc3509ff11e098fc867e5130ab7be802 +SIZE (annotated_types-0.5.0.tar.gz) = 13504 diff --git a/devel/py-annotated-types/pkg-descr b/devel/py-annotated-types/pkg-descr new file mode 100644 index 000000000000..7461be5f5846 --- /dev/null +++ b/devel/py-annotated-types/pkg-descr @@ -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. + +annotated-types 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.