From nobody Mon Feb 28 12:50:42 2022 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 025CE19F22C8; Mon, 28 Feb 2022 12:50:44 +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 4K6gGW0BQLz3hXv; Mon, 28 Feb 2022 12:50:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646052643; 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=MKjAyfphjY5pSngB/Lfj+6h/9Zx+zbSm2qrjg4ZuQ6c=; b=RoYJdD25KjwMirAyZSqVzRKhwI+2D4N+8invvlUjTkc6IX9spKlzMjR4MmGte7G4yDtfjR 2/KfsQn4zJo306exgLl533eZA9eliBvjX28mxlvxf8sedIq/fbIVjbcewXY403tFOkzsUJ S/KdE2YTiXZY1NkOnn88m/hEsmabXhpSH119T8eIbg9xFB4l1ZQYW3H76D2n6baXRphEQE +0DNAYEh+aNMWAisHzYWn1OyH4nlFsi5s0hCF/WdbrCsE2yFQNyTWmdXifveVN3pfqmmTs bBrY+bw6DxwPuaLbZSsxWNPBbDSzP4mTYLdpiphxOjDcBFBO6VcI/NJJHcdA1w== 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 B1E711B990; Mon, 28 Feb 2022 12:50:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21SCogJI058981; Mon, 28 Feb 2022 12:50:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21SCogu0058980; Mon, 28 Feb 2022 12:50:42 GMT (envelope-from git) Date: Mon, 28 Feb 2022 12:50:42 GMT Message-Id: <202202281250.21SCogu0058980@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: 272b6fb8f52b - main - devel/py-cattrs: Add py-cattrs 1.10.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: 272b6fb8f52bc0bba505c034f5f545259efccfcd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646052643; 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=MKjAyfphjY5pSngB/Lfj+6h/9Zx+zbSm2qrjg4ZuQ6c=; b=kHaPO6jNqnhFGI+L1nfvQ4G4eeZCMKDW+WNjB6Xi3gMuX00wqjLyBYWCx/3NJxsSaKofMY esR0OikOszr9qbm8bO+AUdYpxA7rf60Dtas9GxUUQ5BoPCBlMJ0BqYfkcV2MEUOJTlADiP RftWEVAn5zBRDKC0cbrAdgRZr2kNxZDfvR9zLuadP7XEcYOPBK/4aZScZl/Hq+GcUZbGH+ 3KNE4OHI/INq4tbGSzkZyV0UZkOU9UqouZ3e2qLMK7dwVZQ1cNTZyx8f/cm+YMpzqPdvK+ mX4UV5ogTevLiNJPleU50d5ZnLLFB+g5jZRsiSNle5lO07UWP2Ym+D913D72Xg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646052643; a=rsa-sha256; cv=none; b=KsBHHrCt0jTIMA9Thm9saUwq/K1bcPc1VUHIA8SHS+kwkPZB+1kgOx3lqLajc6eVXRIyGf iquxGe4/M5uGiXb7VummLVP9WW+YpzN1dVe2m487lxgDgkcu3REruWZqWaLq98/vbSJJG+ pbzya4HJfmnOHTa3CqiiaqSRn/dw/SP/XQU549h02wL/HiiCJk0j4nfe02BB2qgY6wo9/+ pKrK4xcfh6sS8twzSVa1hjoLo7sao2Hq7hHJeqPkR7LDl0BR4eA9vx+K+WFrK1AEoRP7+v CAug9Unj8FXD3lyY5rX6Vvh8Moo322WOcsusFbJ/SlcYX8hJsEt/tS8qE69q1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=272b6fb8f52bc0bba505c034f5f545259efccfcd commit 272b6fb8f52bc0bba505c034f5f545259efccfcd Author: Po-Chuan Hsieh AuthorDate: 2022-02-28 09:54:41 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-02-28 12:45:54 +0000 devel/py-cattrs: Add py-cattrs 1.10.0 cattrs is an open source Python library for structuring and unstructuring data. cattrs works best with attrs classes, dataclasses and the usual Python collections, but other kinds of classes are supported by manually registering converters. Python has a rich set of powerful, easy to use, built-in data types like dictionaries, lists and tuples. These data types are also the lingua franca of most data serialization libraries, for formats like json, msgpack, yaml or toml. Data types like this, and mappings like dict s in particular, represent unstructured data. Your data is, in all likelihood, structured: not all combinations of field names or values are valid inputs to your programs. In Python, structured data is better represented with classes and enumerations. attrs is an excellent library for declaratively describing the structure of your data, and validating it. When you're handed unstructured data (by your network, file system, database...), cattrs helps to convert this data into structured data. When you have to convert your structured data into data types other libraries can handle, cattrs turns your classes and enumerations into dictionaries, integers and strings. WWW: https://github.com/python-attrs/cattrs --- devel/Makefile | 1 + devel/py-cattrs/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-cattrs/distinfo | 3 +++ devel/py-cattrs/pkg-descr | 23 +++++++++++++++++++++++ 4 files changed, 55 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index e55d0fb13dab..028ad4ffcdae 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4342,6 +4342,7 @@ SUBDIR += py-case SUBDIR += py-castellan SUBDIR += py-catalogue + SUBDIR += py-cattrs SUBDIR += py-cbor SUBDIR += py-cbor2 SUBDIR += py-cclib diff --git a/devel/py-cattrs/Makefile b/devel/py-cattrs/Makefile new file mode 100644 index 000000000000..4b38ffc00a15 --- /dev/null +++ b/devel/py-cattrs/Makefile @@ -0,0 +1,28 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= cattrs +PORTVERSION= 1.10.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Composable complex class support for attrs and dataclasses + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=20:devel/py-attrs@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +.include diff --git a/devel/py-cattrs/distinfo b/devel/py-cattrs/distinfo new file mode 100644 index 000000000000..ca739ed89ad2 --- /dev/null +++ b/devel/py-cattrs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1643970966 +SHA256 (cattrs-1.10.0.tar.gz) = 211800f725cdecedcbcf4c753bbd22d248312b37d130f06045434acb7d9b34e1 +SIZE (cattrs-1.10.0.tar.gz) = 24893 diff --git a/devel/py-cattrs/pkg-descr b/devel/py-cattrs/pkg-descr new file mode 100644 index 000000000000..d951efcfb542 --- /dev/null +++ b/devel/py-cattrs/pkg-descr @@ -0,0 +1,23 @@ +cattrs is an open source Python library for structuring and unstructuring data. +cattrs works best with attrs classes, dataclasses and the usual Python +collections, but other kinds of classes are supported by manually registering +converters. + +Python has a rich set of powerful, easy to use, built-in data types like +dictionaries, lists and tuples. These data types are also the lingua franca of +most data serialization libraries, for formats like json, msgpack, yaml or toml. + +Data types like this, and mappings like dict s in particular, represent +unstructured data. Your data is, in all likelihood, structured: not all +combinations of field names or values are valid inputs to your programs. In +Python, structured data is better represented with classes and enumerations. +attrs is an excellent library for declaratively describing the structure of your +data, and validating it. + +When you're handed unstructured data (by your network, file system, +database...), cattrs helps to convert this data into structured data. When you +have to convert your structured data into data types other libraries can handle, +cattrs turns your classes and enumerations into dictionaries, integers and +strings. + +WWW: https://github.com/python-attrs/cattrs