From nobody Thu Nov 21 20:57: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 4XvVsb5Cgdz5dZX8; Thu, 21 Nov 2024 20:57: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvVsb4gr1z4v8t; Thu, 21 Nov 2024 20:57:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732222627; 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=RqcJf5WoPW7TiKEb/LUyy1tKbP6+GOlKTGuJIrMGn6Q=; b=t5dzzO6EGxqSX7L0zkFW++u6SoSQtJHZHm31cM76J/krTOZDw4fQ4jkQQRY3fPD3dmMoSD 9Ty8goeJlhqDEhe0Ps5WW9Xh4t6XyFzKLpVNDXbJ1yr0r9y0BW4+4oQ6FanXFW5YSzvQtQ FQPHDMFQYdAG6zJ0iGvL+vfBQcaSxrXCHHHp9sUxZobyFSl5N9/qenY0ZUOCrl+yLTTYxs OxNhTcuzaIWPlECgHNWoicOzRgPWMSWMKWBKTSB8zmBzGydbIwT96+ZVCzlGjXoRvZdSIl waZ7XuQuWRXU30unHsStfbX4c8YycF01JoCXfSn5WZxRllp2ziuOTCLXLIJFJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732222627; 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=RqcJf5WoPW7TiKEb/LUyy1tKbP6+GOlKTGuJIrMGn6Q=; b=OKjNR3aED3co7mse36JLyC7+FUaD+TLHWxNUyC54r9dXF539pfVQQLJBORax4T+v8lr8Fm JeRyO5JXxAzpmUD8hA1benXMRRDddDbNMETFulNpsZvDwBomJ5Lj7wLMHDHkoHoNbNUn4Q xVrPZTZc3Ifumq0ymVUDGPNieIn0bxtTNQCr+p2BQ7utsVAFNFs6jZnanXUldJz9dTYUu3 HnmwhwpOyQU6dixfYAEbnCbt/uoadRdSsKay0Q7pztH6KqknntJhetcrgzYm3gGyrtt0oi s4o4FJQZsGSZ7F1CY26fcGdZ4iOyfjOtNf8iJrUV+2WmjEEdjN414ZvuBep6MA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732222627; a=rsa-sha256; cv=none; b=APT9tDsINwZRPHmMkaKMErUEpO8yLrhPF5Cy3c75Dyzz7wDYQqp0J5Z2BdSsw/NTga+1F7 hzMwUGolaTG02ddzP8zGiALEBjJ7QmYcDY4FyXngeo8TDmR91SkQXDROWtqHNj7B3O0Uq9 A2AUnsV8TeBIBm3vmzx/CxhiBK0d7wNlYqL0GyDVRsLzeXHoLG4ZWZGpH736u/J1LvsWKB firbJ6CHPY9Ap4pyYdsCAF+p4SCl1aKjwIX30OMd17iLC49d7CZWHqj7ekjLRM/XvRJ7aZ AW0iSgLN6Ado+4Cla9HhlgCq9JAQ0OLfHzCYWmilbZ8tZq5xQNgTGVh4/yhCfg== 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 4XvVsb488xzw4k; Thu, 21 Nov 2024 20:57: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 4ALKv7GV038515; Thu, 21 Nov 2024 20:57:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ALKv7Ei038512; Thu, 21 Nov 2024 20:57:07 GMT (envelope-from git) Date: Thu, 21 Nov 2024 20:57:07 GMT Message-Id: <202411212057.4ALKv7Ei038512@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: 66875a9475fe - main - devel/py-propcache: Add py-propcache 0.2.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: 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: 66875a9475feaf214d8103b009b8946b82b495f4 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=66875a9475feaf214d8103b009b8946b82b495f4 commit 66875a9475feaf214d8103b009b8946b82b495f4 Author: Po-Chuan Hsieh AuthorDate: 2024-11-21 20:51:51 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-11-21 20:51:51 +0000 devel/py-propcache: Add py-propcache 0.2.0 propcache provides a fast implementation of cached properties for Python. The API is designed to be nearly identical to the built-in functools.cached_property class, except for the additional under_cached_property class which uses self._cache instead of self.__dict__ to store the cached values and prevents __set__ from being called. --- devel/Makefile | 1 + devel/py-propcache/Makefile | 26 ++++++++++++++++++++++++++ devel/py-propcache/distinfo | 3 +++ devel/py-propcache/pkg-descr | 6 ++++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 673bf802c66f..e0ab26a29bd5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5465,6 +5465,7 @@ SUBDIR += py-prompt-toolkit SUBDIR += py-prompt-toolkit1 SUBDIR += py-prompt-toolkit2 + SUBDIR += py-propcache SUBDIR += py-property-cached SUBDIR += py-proselint SUBDIR += py-prospector diff --git a/devel/py-propcache/Makefile b/devel/py-propcache/Makefile new file mode 100644 index 000000000000..22e5fd60840f --- /dev/null +++ b/devel/py-propcache/Makefile @@ -0,0 +1,26 @@ +PORTNAME= propcache +PORTVERSION= 0.2.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Accelerated property cache +WWW= https://propcache.aio-libs.org/en/latest/ \ + https://github.com/aio-libs/propcache + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}expandvars>=0:devel/py-expandvars@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PY_TOMLI} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent cython pep517 + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/devel/py-propcache/distinfo b/devel/py-propcache/distinfo new file mode 100644 index 000000000000..0ccf9e20ec43 --- /dev/null +++ b/devel/py-propcache/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1732202480 +SHA256 (propcache-0.2.0.tar.gz) = df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70 +SIZE (propcache-0.2.0.tar.gz) = 40951 diff --git a/devel/py-propcache/pkg-descr b/devel/py-propcache/pkg-descr new file mode 100644 index 000000000000..000860c8f605 --- /dev/null +++ b/devel/py-propcache/pkg-descr @@ -0,0 +1,6 @@ +propcache provides a fast implementation of cached properties for Python. + +The API is designed to be nearly identical to the built-in +functools.cached_property class, except for the additional under_cached_property +class which uses self._cache instead of self.__dict__ to store the cached values +and prevents __set__ from being called.