From bb2fd97c743618ef95c7dcc8774dd8074623156c Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 19 Dec 2024 17:42:11 -0800 Subject: [PATCH] devel/py-cachier: New port: Persistent/stale-free/local/cross-machine caching for Python functions --- devel/Makefile | 1 + devel/py-cachier/Makefile | 29 +++++++++++++++++++++++++++++ devel/py-cachier/distinfo | 3 +++ devel/py-cachier/pkg-descr | 2 ++ 4 files changed, 35 insertions(+) create mode 100644 devel/py-cachier/Makefile create mode 100644 devel/py-cachier/distinfo create mode 100644 devel/py-cachier/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index e1698492130c..9b21b1e447a2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4600,6 +4600,7 @@ SUBDIR += py-cachetools SUBDIR += py-cachey SUBDIR += py-cacheyou + SUBDIR += py-cachier SUBDIR += py-cachy SUBDIR += py-cadquery-pywrap SUBDIR += py-calver diff --git a/devel/py-cachier/Makefile b/devel/py-cachier/Makefile new file mode 100644 index 000000000000..a0b396917d5b --- /dev/null +++ b/devel/py-cachier/Makefile @@ -0,0 +1,29 @@ +PORTNAME= cachier +DISTVERSIONPREFIX= v +DISTVERSION= 3.1.2 +CATEGORIES= devel python +#MASTER_SITES= PYPI # no tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Persistent/stale-free/local/cross-machine caching for Python functions +WWW= https://github.com/python-cachier/cachier + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}portalocker>=2.3.2:devel/py-portalocker@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}watchdog>=2.3.1:devel/py-watchdog@${PY_FLAVOR} +# TEST_DEPENDS has 2 not-yet-ported dependencies: birch, pymongo-inmemory + +USES= python +USE_PYTHON= pep517 autoplist + +USE_GITHUB= yes +GH_ACCOUNT= python-cachier + +NO_ARCH= yes + +.include diff --git a/devel/py-cachier/distinfo b/devel/py-cachier/distinfo new file mode 100644 index 000000000000..3a3def270b58 --- /dev/null +++ b/devel/py-cachier/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1734658381 +SHA256 (python-cachier-cachier-v3.1.2_GH0.tar.gz) = 1ae8888287d6861788e81163b72a0b4a28e144a5943b94d2ff27668d423fc444 +SIZE (python-cachier-cachier-v3.1.2_GH0.tar.gz) = 32120 diff --git a/devel/py-cachier/pkg-descr b/devel/py-cachier/pkg-descr new file mode 100644 index 000000000000..36cc17682332 --- /dev/null +++ b/devel/py-cachier/pkg-descr @@ -0,0 +1,2 @@ +Cachier is a Python package that provides persistent, stale-free, local +and cross-machine caching for Python functions.