From nobody Sun Oct 08 12:02:32 2023 X-Original-To: dev-commits-ports-all@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 4S3LQ04YQtz4wS0p; Sun, 8 Oct 2023 12:02:32 +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 4S3LQ045Cvz4DMm; Sun, 8 Oct 2023 12:02:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696766552; 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=fayyd6X7ANV+TSQNd59Arjsb3z1KuKSzGAYmECk9pAI=; b=q8HMXgDgxEzB+OYDWyunSLMf0er0Q4AKpJV3mC3ZE25kqoC8zoZpcDOYbXGBxyLMB6iW4t ZFHBQx2CUJ3DzUuflJE4alri2Qx0Rlu/OV6lH7QjTSfpr1Y+gHPCmO99yo0EDWNVtwEBuF KWQTRFDR3MiTmIybHltQ+pLac/jRagR0ewknO21YhPBh4x7RLq7BqTvcTE30+z9kfemt2j isRxLfBZvcP3ElotuUXPBlGILm6Sb8c4/8LFB3gjBKjQ5bJWIWmnuLjCZKfCNhAyz3JTr1 /u8dJNm2FiAJ3dlk3IHaVA82dOQPjSVksdu7EsXZfnb3+0PzquTYD9yrNqEnMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696766552; a=rsa-sha256; cv=none; b=yMUJbYr0Y+V9jXEPy1x30riPuJm5oZjdprSQ3qLuplQUtGyKPPxMXrTkRpvAiG4IsFQTZP 8cXAsoOujiU9yLMtOUNjj1vospdhCOZopf43a+MVFlUM8FuJeKQUP+kCAeoTEBsX0a2Cbo dH/1xvvW9BAJ9Cxm4Z5YmwyPSOQSxfi/U+bNJFYbG56ie5bTFw1zjfAdo4HlYUyB6MhmLc XlRzTfUAM06o+WSx/hrkuoichdyKfZ/S/t2+b8k0wKn7T+0OeIDnNfW3Ghh7Bl+ATT9Jff 1jAJrru5cojAfmY2Rleu898bwkrTOlucYAXzU9qrjzkscFWra20QM3mba9c98Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696766552; 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=fayyd6X7ANV+TSQNd59Arjsb3z1KuKSzGAYmECk9pAI=; b=couKxXnf1zNjxBe6AYfqqLwFxGC5tD5XaXod5z9tc6vbjukyppaA5hejeW67MjYjk9KTl4 bOCpju0Xd/ZQMF6o5ena33+vj1bjuj8x/nVpmGdcAAfHI7uK6iKzm2vRl/ylw51zsP/Jy1 dDNaEXD/qKY2SPnVoRLqRLOInlkzz6aZQkOWo+K2ZkFyMZO468X4PaViffKPU/R/CeTH4+ hU3jrNyR+lGjrYsL+eS0243NI2OQ9mjmdXw1c2r5MWJ8lUmgcjNaaU0HsODqtHvxEXbag4 J9uX2vT09yiwutD5hMK0+YPp0uUnd7XGFxqldvvOiMr2igoMShlZlEy7cFu0fg== 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 4S3LQ0388cz1Bg2; Sun, 8 Oct 2023 12:02:32 +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 398C2Wui053004; Sun, 8 Oct 2023 12:02:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 398C2WJh053001; Sun, 8 Oct 2023 12:02:32 GMT (envelope-from git) Date: Sun, 8 Oct 2023 12:02:32 GMT Message-Id: <202310081202.398C2WJh053001@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: d142b1f5ed5b - main - devel/py-array-api-compat: Add py-array-api-compat 1.4 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: d142b1f5ed5be6acc1c72a32a552035ba89af8e4 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d142b1f5ed5be6acc1c72a32a552035ba89af8e4 commit d142b1f5ed5be6acc1c72a32a552035ba89af8e4 Author: Po-Chuan Hsieh AuthorDate: 2023-10-08 11:52:35 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-10-08 11:52:35 +0000 devel/py-array-api-compat: Add py-array-api-compat 1.4 This is a small wrapper around common array libraries that is compatible with the Array API standard. Currently, NumPy, CuPy, and PyTorch are supported. Note that some of the functionality in this library is backwards incompatible with the corresponding wrapped libraries. The end-goal is to eventually make each array library itself fully compatible with the array API, but this requires making backwards incompatible changes in many cases, so this will take some time. Currently all libraries here are implemented against the 2022.12 version of the standard. --- devel/Makefile | 1 + devel/py-array-api-compat/Makefile | 25 +++++++++++++++++++++++++ devel/py-array-api-compat/distinfo | 3 +++ devel/py-array-api-compat/pkg-descr | 11 +++++++++++ 4 files changed, 40 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index e358569a45c1..d80c31fb1b78 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4249,6 +4249,7 @@ SUBDIR += py-argparse SUBDIR += py-args SUBDIR += py-arpeggio + SUBDIR += py-array-api-compat SUBDIR += py-arrow SUBDIR += py-asciimatics SUBDIR += py-asgi-lifespan diff --git a/devel/py-array-api-compat/Makefile b/devel/py-array-api-compat/Makefile new file mode 100644 index 000000000000..0373a788ba3b --- /dev/null +++ b/devel/py-array-api-compat/Makefile @@ -0,0 +1,25 @@ +PORTNAME= array-api-compat +PORTVERSION= 1.4 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= array_api_compat-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Array API compatibility library +WWW= https://data-apis.org/array-api-compat/ \ + https://github.com/data-apis/array-api-compat + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= NUMPY + +NUMPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} + +.include diff --git a/devel/py-array-api-compat/distinfo b/devel/py-array-api-compat/distinfo new file mode 100644 index 000000000000..fec2d702c35f --- /dev/null +++ b/devel/py-array-api-compat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1696753602 +SHA256 (array_api_compat-1.4.tar.gz) = d49f00eb66b436cf3a6026d6f43c115d3e058a3a9936536b0bac33dd470e8b4d +SIZE (array_api_compat-1.4.tar.gz) = 29461 diff --git a/devel/py-array-api-compat/pkg-descr b/devel/py-array-api-compat/pkg-descr new file mode 100644 index 000000000000..b7cf82effdec --- /dev/null +++ b/devel/py-array-api-compat/pkg-descr @@ -0,0 +1,11 @@ +This is a small wrapper around common array libraries that is compatible with +the Array API standard. Currently, NumPy, CuPy, and PyTorch are supported. + +Note that some of the functionality in this library is backwards incompatible +with the corresponding wrapped libraries. The end-goal is to eventually make +each array library itself fully compatible with the array API, but this requires +making backwards incompatible changes in many cases, so this will take some +time. + +Currently all libraries here are implemented against the 2022.12 version of the +standard.