From nobody Wed Aug 16 18:30:21 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 4RQxWx4J3Wz4qxJm; Wed, 16 Aug 2023 18:30:21 +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 4RQxWx3jlzz4P1l; Wed, 16 Aug 2023 18:30:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692210621; 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=nZLj4Lyja6ykS1mbSisNN7mmsBmFH5B4/pSeAvreLYQ=; b=r6LiUrHFHIamZI7Ca8T8PvqLYl7s7OcJAzk+orAj9rEwHHr0OZz0sCCQpQ9uyLU34DKJty Y+OoGf5Ww4LoPF4DlY6Wjp5QH8LC88hP3oBXvw4q4WqVTA8zbwlIXPUjnP1fM+7AtVruHF sCd39oYw8HFlboDqk1RseZrtAVBSOYsVDvQInpmV9wP4zuZxVQPQ4brO8cUButYXfn9ZgI oETX7vwryYgwPnqmm1L+ceBZOQ8+ncZCRLix/nVt7ai2l36P+xH/tnhmYX5EnUaqBHHsoE PsKM8E9jx+0uqKs4vpZml2ICbOUwJBCUf5uVMoc1g/iZE5CzhcOUfwvbwI8xUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692210621; 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=nZLj4Lyja6ykS1mbSisNN7mmsBmFH5B4/pSeAvreLYQ=; b=WJmF1F6xIWYSL21oFwZK2UCW5UZHN3nNFFbKQACDYDYMkPnR7+8G2D4ozmepsW3FTFFEqo ERC0lY6e9hQKzkb9qqkRgKe9MrMn7s3t4icWJW7TGWyrMqgKluYjOGfATLTacrwQ/GwUvy CGif4ZFO6pza7ZPnbDXAMoHljNE31Fi5vqXznOD+RH/OesAxtsFdzx7FpSD7JKjQqTnM0M gLA/As5gRhlNT6Fb5uqDZ04HRK0n9FNJ+jFrBAN3CABtPnooxWCT5Dv3T/ycI52gJUct8r +A2mw/FOeswVrm9Qbdl0cQmxr1ofdwYoPhMJbKBL+6C+ru/6wru29TBGqh0ZvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692210621; a=rsa-sha256; cv=none; b=g9a3n5oGPaPmyiwDs9vVSza+PKcxt+W3tpx1QxDAfg3w0Vr3VH+6fsGqb/0uvWd14GOkkI ATq/n9x31Zyj1oMOqRwAnHHDHBE3GRdzRbTMDamyzyNr2fbYnFM63cnUq4jNKUoX+odt9p l+bXyetBhlgOJ39cPRBPH/I1PJgOA9xmJLTHTN93StOd5doL30zPW+GovDRmw0e9Lfa+HR 6PAiGLCRxcB9+xk4PdXf7LboG/Kn7KpNOFVO5IJo4qmpoLwECBjzWECpAYzqwZXMP3h35w xx4zfihD5zFj8H9y3dcvOCCu7JgKVewS4keJgmbP+OUXDoj5e4/p6Jm8Bz2u8A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4RQxWx2q2Nz11yt; Wed, 16 Aug 2023 18:30:21 +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 37GIULmM023145; Wed, 16 Aug 2023 18:30:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37GIULI8023142; Wed, 16 Aug 2023 18:30:21 GMT (envelope-from git) Date: Wed, 16 Aug 2023 18:30:21 GMT Message-Id: <202308161830.37GIULI8023142@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: 9b4992baf6eb - main - devel/py-dataclass-array: Add py-dataclass-array 1.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: 9b4992baf6eb7db7cdbada0e6013a0f6e0304557 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=9b4992baf6eb7db7cdbada0e6013a0f6e0304557 commit 9b4992baf6eb7db7cdbada0e6013a0f6e0304557 Author: Po-Chuan Hsieh AuthorDate: 2023-08-16 18:06:34 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-08-16 18:25:05 +0000 devel/py-dataclass-array: Add py-dataclass-array 1.5.0 DataclassArray are dataclasses which behave like numpy-like arrays (can be batched, reshaped, sliced,...), compatible with Jax, TensorFlow, and numpy (with torch support planned). This reduce boilerplate and improve readability. --- devel/Makefile | 1 + devel/py-dataclass-array/Makefile | 27 +++++++++++++++++++++++++++ devel/py-dataclass-array/distinfo | 3 +++ devel/py-dataclass-array/pkg-descr | 5 +++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index fff5d1d64457..3c9648a690af 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4546,6 +4546,7 @@ SUBDIR += py-darts.util.lru SUBDIR += py-dask SUBDIR += py-dask-histogram + SUBDIR += py-dataclass-array SUBDIR += py-dataclasses-json SUBDIR += py-datadog SUBDIR += py-datapackage diff --git a/devel/py-dataclass-array/Makefile b/devel/py-dataclass-array/Makefile new file mode 100644 index 000000000000..22103b267b98 --- /dev/null +++ b/devel/py-dataclass-array/Makefile @@ -0,0 +1,27 @@ +PORTNAME= dataclass-array +PORTVERSION= 1.5.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= dataclass_array-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Dataclasses that behave like numpy arrays (with indexing, slicing, vectorization) +WWW= https://github.com/google-research/dataclass_array + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.8<4:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}einops>=0:misc/py-einops@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}etils>=0:devel/py-etils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lark>=0:devel/py-lark@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= python:3.9+ +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-dataclass-array/distinfo b/devel/py-dataclass-array/distinfo new file mode 100644 index 000000000000..743ef80c5886 --- /dev/null +++ b/devel/py-dataclass-array/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1691069892 +SHA256 (dataclass_array-1.5.0.tar.gz) = 8efe79d61df43869679fbd569fe8a74b432e62b50e7dd1eaf2cd7de951319b22 +SIZE (dataclass_array-1.5.0.tar.gz) = 34757 diff --git a/devel/py-dataclass-array/pkg-descr b/devel/py-dataclass-array/pkg-descr new file mode 100644 index 000000000000..44149ccc9080 --- /dev/null +++ b/devel/py-dataclass-array/pkg-descr @@ -0,0 +1,5 @@ +DataclassArray are dataclasses which behave like numpy-like arrays (can be +batched, reshaped, sliced,...), compatible with Jax, TensorFlow, and numpy (with +torch support planned). + +This reduce boilerplate and improve readability.