git: 8ab7d67491a4 - main - devel/py-cachey: New port: Caching mindful of computation/storage costs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Dec 2024 20:46:59 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8ab7d67491a47c4e7754373a91bc334dec80f8c7
commit 8ab7d67491a47c4e7754373a91bc334dec80f8c7
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-12-11 20:46:23 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-12-11 20:46:55 +0000
devel/py-cachey: New port: Caching mindful of computation/storage costs
---
devel/Makefile | 1 +
devel/py-cachey/Makefile | 21 +++++++++++++++++++++
devel/py-cachey/distinfo | 3 +++
devel/py-cachey/pkg-descr | 7 +++++++
4 files changed, 32 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 436a13acfa9b..d7b491d4a9e5 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4582,6 +4582,7 @@
SUBDIR += py-cabby
SUBDIR += py-cached-property
SUBDIR += py-cachetools
+ SUBDIR += py-cachey
SUBDIR += py-cacheyou
SUBDIR += py-cachy
SUBDIR += py-cadquery-pywrap
diff --git a/devel/py-cachey/Makefile b/devel/py-cachey/Makefile
new file mode 100644
index 000000000000..73cc02684d43
--- /dev/null
+++ b/devel/py-cachey/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= cachey
+DISTVERSION= 0.2.1
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Caching mindful of computation/storage costs
+WWW= https://github.com/dask/cachey/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}heapdict>0:devel/py-heapdict@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist pytest
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-cachey/distinfo b/devel/py-cachey/distinfo
new file mode 100644
index 000000000000..5c79c670e701
--- /dev/null
+++ b/devel/py-cachey/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1733949081
+SHA256 (cachey-0.2.1.tar.gz) = 0310ba8afe52729fa7626325c8d8356a8421c434bf887ac851e58dcf7cf056a6
+SIZE (cachey-0.2.1.tar.gz) = 6461
diff --git a/devel/py-cachey/pkg-descr b/devel/py-cachey/pkg-descr
new file mode 100644
index 000000000000..22bc88402a66
--- /dev/null
+++ b/devel/py-cachey/pkg-descr
@@ -0,0 +1,7 @@
+cachey implements caching based on computation time and storage space.
+
+Cachey tries to hold on to values that have the following characteristics:
+* Expensive to recompute (in seconds)
+* Cheap to store (in bytes)
+* Frequently used
+* Recenty used