From nobody Mon Dec 25 09:08:13 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 4SzBrs2xcNz54LLK; Mon, 25 Dec 2023 09:08:13 +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 4SzBrs26tRz3TjG; Mon, 25 Dec 2023 09:08:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703495293; 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=LwDmE1sXAozpy7l0aS5loAGcIriH1YB8sts0BirCKAw=; b=sagcHk45kE1ubEIKh4r3BW4sAZDMUTmHnrlTmbtPAPg5qUXkrAQrfnUFTU0j/3Q5Zqd9fc w9BPBKO65bKDQLDLNpgi//oAz/EMSpy2U/RB8sPzwInLZK5kCcPlEnBr0psMmtxocS8SIq a82Gz9tzAdxJIv1tM2e6q/fBrvnyfrxraheDXyj+2GIlRnqrf+fEaWGZxN8eW9rn3rB0xj zwIHI3uG9tLdYoT7KhcdQefL1xBrjRntcDiHHlSbsYfxnbp5TTLM5WPmsq7l6NlKrTM62G 7TUI4D24SpiP6CDfZGwoI4avQQz6OVHuiply9FO5VT/D47BJlAoBpTvVJMQYSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703495293; a=rsa-sha256; cv=none; b=VrxENXJoTfOUUhpXkMRMxWhjRn3rweCS3eJB7kCnL0H15GgDFYo+h4JxD4Mk8yA79Qon9a 95TQzle+UfhcWnYTnXp1Hr1mHMRUuG6HA70GAnXAeER0mEXzxGgyXnHIB11+e/bkYA/Ytu fqrWsr0rWG+i+YqLx8pZfJv2ZoMRJCryP8RBzVQhAyC+VqScJNycKjrzkvba7sGQa4mXS6 wIl9qKcWgaPa9DKomKec1eG4msVhGDTJIgzQO+jHCC56NcOiatdnj2ZIZLHix7vx6Zx+PU OUL92faXGMYZiUil1ROyaqF6w2TsQZAtK5bmSAbEBu/nuJ4kaBjt77ujsIzvpQ== 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=1703495293; 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=LwDmE1sXAozpy7l0aS5loAGcIriH1YB8sts0BirCKAw=; b=pY08kOsZndMcwWzHIbD0SoDWrztf15T9AlT1VA5iXNM87XcaazqljMMX36O3PTduVwF9Ac mRu1EuoErWaDP0TTFgqOFn0nRYW0dz3vNyZbEo6DitvMZQiMKTAXtw1Y+iFn78uHSWp4SJ dGrGsYI89lOR/SGZr19zMY5WnnGNPW1H/SahElhxSBHxvNkl1FOs2jF6FSTVadK31a04nc 1uF0DsADcrRtwafFcbOCQ6aZ5G3gdkaSVL9tO/ClUNuVQo2w6r5H1huCp32A6+wlI/gu1P JN0YJBxW/3bcVsC7HQJv5CKHkaTQzAPUdUD0Qevb5AZ2Uat5rnrA8YsJ6dgqbQ== 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 4SzBrs0w9Yz14ST; Mon, 25 Dec 2023 09:08:13 +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 3BP98Dih068536; Mon, 25 Dec 2023 09:08:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BP98DnB068533; Mon, 25 Dec 2023 09:08:13 GMT (envelope-from git) Date: Mon, 25 Dec 2023 09:08:13 GMT Message-Id: <202312250908.3BP98DnB068533@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: 2852bacb2eb0 - main - devel/py-optree: Add py-optree 0.10.0 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: 2852bacb2eb02d3c3fd2ca75258cce968634f814 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=2852bacb2eb02d3c3fd2ca75258cce968634f814 commit 2852bacb2eb02d3c3fd2ca75258cce968634f814 Author: Po-Chuan Hsieh AuthorDate: 2023-12-25 08:56:51 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-12-25 08:56:51 +0000 devel/py-optree: Add py-optree 0.10.0 OpTree provides optimized PyTree utilities. A PyTree is a recursive structure that can be an arbitrarily nested Python container (e.g., tuple, list, dict, OrderedDict, NamedTuple, etc.) or an opaque Python object. The key concepts of tree operations are tree flattening and its inverse (tree unflattening). Additional tree operations can be performed based on these two basic functions. --- devel/Makefile | 1 + devel/py-optree/Makefile | 27 +++++++++++++++++++++++++++ devel/py-optree/distinfo | 3 +++ devel/py-optree/files/patch-setup.py | 18 ++++++++++++++++++ devel/py-optree/pkg-descr | 7 +++++++ 5 files changed, 56 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 4f8f0c5af730..0733a154ac60 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5093,6 +5093,7 @@ SUBDIR += py-opentracing SUBDIR += py-opster SUBDIR += py-optik + SUBDIR += py-optree SUBDIR += py-orange-canvas-core SUBDIR += py-orange-widget-base SUBDIR += py-orca diff --git a/devel/py-optree/Makefile b/devel/py-optree/Makefile new file mode 100644 index 000000000000..37396cfe06af --- /dev/null +++ b/devel/py-optree/Makefile @@ -0,0 +1,27 @@ +PORTNAME= optree +PORTVERSION= 0.10.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Optimized PyTree utilities +WWW= https://optree.readthedocs.io/en/latest/ \ + https://github.com/metaopt/optree + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= cmake:devel/cmake-core \ + ${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0.0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= compiler:c++20-lang python +USE_PYTHON= autoplist concurrent pep517 + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/devel/py-optree/distinfo b/devel/py-optree/distinfo new file mode 100644 index 000000000000..6d2af0d2fc75 --- /dev/null +++ b/devel/py-optree/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703227790 +SHA256 (optree-0.10.0.tar.gz) = dc7e8880f997365083191784d141c790833877af71aec8825c7f2b7f7f43c98e +SIZE (optree-0.10.0.tar.gz) = 112851 diff --git a/devel/py-optree/files/patch-setup.py b/devel/py-optree/files/patch-setup.py new file mode 100644 index 000000000000..e1c613574573 --- /dev/null +++ b/devel/py-optree/files/patch-setup.py @@ -0,0 +1,18 @@ +--- setup.py.orig 2023-11-07 06:45:50 UTC ++++ setup.py +@@ -67,15 +67,6 @@ class cmake_build_ext(build_ext): # noqa: N801 + pass + + build_args = ['--config', config] +- if ( +- 'CMAKE_BUILD_PARALLEL_LEVEL' not in os.environ +- and hasattr(self, 'parallel') +- and self.parallel +- ): +- build_args.extend(['--parallel', str(self.parallel)]) +- else: +- build_args.append('--parallel') +- + build_args.extend(['--target', ext.target, '--']) + + try: diff --git a/devel/py-optree/pkg-descr b/devel/py-optree/pkg-descr new file mode 100644 index 000000000000..a9b8ed2dbf3d --- /dev/null +++ b/devel/py-optree/pkg-descr @@ -0,0 +1,7 @@ +OpTree provides optimized PyTree utilities. + +A PyTree is a recursive structure that can be an arbitrarily nested Python +container (e.g., tuple, list, dict, OrderedDict, NamedTuple, etc.) or an opaque +Python object. The key concepts of tree operations are tree flattening and its +inverse (tree unflattening). Additional tree operations can be performed based +on these two basic functions.