From nobody Mon Oct 14 05:27:07 2024 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 4XRm232rVNz5Z939; Mon, 14 Oct 2024 05:27:07 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XRm2327jtz4Tbl; Mon, 14 Oct 2024 05:27:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728883627; 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=Mt0hTDfuykuzKUtEfpd7+uzNNSH+T9Pd6radR+h7SYk=; b=y4adDP1gc+KqGVGkd/rHHqwJ/Pgr2PHJBs6X4mgbZntL5uVpgNJa/wjUSwyixzlJFNKtjq uDP+RHbTOg46ZKExyOsCQ6xzeC+HeHIDiT7+Ivq6oQEQcCN6EKZDBmygKkBiccjOaiL63L uQu/8VFXUudfnWAt9o7Z3+69RVRmbpSB4BhRj9HKybIpJDcrD7CfnNn7aCI0D0wPz9l93Y LK3tSrGP4njORMeyg2A0XXzPaCsNhoYEsNJnnv8ICEdr9ynMWi88Yhqb3+2XPwIno/F7GQ XazmmfdAxDw0VQuNBKWPsZxAaW5WkvTASVWs/JOFaQCIuesXplxWie8D9aBwDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728883627; 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=Mt0hTDfuykuzKUtEfpd7+uzNNSH+T9Pd6radR+h7SYk=; b=T00uln0zVJ4QZgDRqop0kLdcpYFjAheC6tCPWceyJyO3DVzRz7Wvwdz39YdCt04IEw6Rmu uHuXuu/7DRRJuB9XguF/zUvB6GdA5FTnTrAIIZ1AEQr+CaFLU65ikis28w1G9fK3nbKUD6 NZX+giFEdohmXyXx9IqrSmk36xqryIb8Qu3QCOjAReBU737+olPqCoY24GCItkcQrmzJBc UsJQTQNokuubqudmLvstlOv2fwkABpDGxrvHMpSi8K7z6hG1SBohjSJsD3IK/l/Shd44CT c8Zfe+aMqF6A7oXKIpSwS92+prY+e+8k2c+s3Saqsxw8CuNTxYmWB7Mhj3FCGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728883627; a=rsa-sha256; cv=none; b=Oou84vs2p75I07XO4xUNMlc+OXEgBiczLW3vbHRAlalJ8CeuwUocCDpvH6dTYk4buAX5g8 2lHXilanR0rVTrpMZfRImiI8lJXRQvPmxfDyhUWCUhs5lNaz3n48lXcWEKpA2ayhaCZ6Ve thzD7Cle4pcKVwKvJ+gghQtvlvzcytxoRsZODQYCYIhRMiNRT0+bzh/LReihfUs9QAmKgc 9d6KY9420cjLY2PcppeJHcEKBasBZetZsUxbttV104CCYvwv/v3UDPfa5rCMJlDVYHpo9X fPFxmaX8wYJBQkQh9iOi2nLWYLABQ578oSee0eE6466J1lpSrB8OKgRX4kspwg== 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 4XRm231HwszPwq; Mon, 14 Oct 2024 05:27:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49E5R7gm046569; Mon, 14 Oct 2024 05:27:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49E5R798046566; Mon, 14 Oct 2024 05:27:07 GMT (envelope-from git) Date: Mon, 14 Oct 2024 05:27:07 GMT Message-Id: <202410140527.49E5R798046566@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: dabbe8449f5f - main - devel/py-cattrs23: Add py-cattrs23 23.2.3 (copied from py-cattrs) 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-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: dabbe8449f5fbd9a94b7a73cbcf9b15cb3aaacb6 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=dabbe8449f5fbd9a94b7a73cbcf9b15cb3aaacb6 commit dabbe8449f5fbd9a94b7a73cbcf9b15cb3aaacb6 Author: Po-Chuan Hsieh AuthorDate: 2024-10-14 04:45:07 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-10-14 04:45:07 +0000 devel/py-cattrs23: Add py-cattrs23 23.2.3 (copied from py-cattrs) - Add PORTSCOUT --- devel/Makefile | 1 + devel/py-cattrs23/Makefile | 34 ++++++++++++++++++++++++++++++++++ devel/py-cattrs23/distinfo | 3 +++ devel/py-cattrs23/pkg-descr | 21 +++++++++++++++++++++ 4 files changed, 59 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index f3d0d9649fbc..50615c8cb62f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4593,6 +4593,7 @@ SUBDIR += py-castellan SUBDIR += py-catalogue SUBDIR += py-cattrs + SUBDIR += py-cattrs23 SUBDIR += py-cbor SUBDIR += py-cbor2 SUBDIR += py-cclib diff --git a/devel/py-cattrs23/Makefile b/devel/py-cattrs23/Makefile new file mode 100644 index 000000000000..18677f1543e1 --- /dev/null +++ b/devel/py-cattrs23/Makefile @@ -0,0 +1,34 @@ +PORTNAME= cattrs +PORTVERSION= 23.2.3 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 23 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Composable complex class support for attrs and dataclasses +WWW= https://catt.rs/en/stable/ \ + https://github.com/python-attrs/cattrs + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0:devel/py-hatch-vcs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=23.1.0:devel/py-attrs@${PY_FLAVOR} \ + ${PY_EXCEPTIONGROUP} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +PORTSCOUT= limit:^23\. + +.include + +.if ${PYTHON_REL} < 31100 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.1.0:devel/py-typing-extensions@${PY_FLAVOR} +.endif + +.include diff --git a/devel/py-cattrs23/distinfo b/devel/py-cattrs23/distinfo new file mode 100644 index 000000000000..4e77edfb9488 --- /dev/null +++ b/devel/py-cattrs23/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1701363700 +SHA256 (cattrs-23.2.3.tar.gz) = a934090d95abaa9e911dac357e3a8699e0b4b14f8529bcc7d2b1ad9d51672b9f +SIZE (cattrs-23.2.3.tar.gz) = 610215 diff --git a/devel/py-cattrs23/pkg-descr b/devel/py-cattrs23/pkg-descr new file mode 100644 index 000000000000..7806fea5e364 --- /dev/null +++ b/devel/py-cattrs23/pkg-descr @@ -0,0 +1,21 @@ +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.