Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2024 20:57:07 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 66875a9475fe - main - devel/py-propcache: Add py-propcache 0.2.0
Message-ID:  <202411212057.4ALKv7Ei038512@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=66875a9475feaf214d8103b009b8946b82b495f4

commit 66875a9475feaf214d8103b009b8946b82b495f4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-11-21 20:51:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
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 <bsd.port.mk>
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411212057.4ALKv7Ei038512>