aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-04-05 19:34:17 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-04-06 17:55:47 +0000
commit5a151a392916444dc129092413b84098028ddef8 (patch)
tree21d5d802217f187a89a6e6cab173c98abe0ef84f
parent87421263a8277cb7ccb835e228e5330259a1b3d2 (diff)
devel/py-cached-path: New port: File utility for accessing local and remote files uniformly
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-cached-path/Makefile31
-rw-r--r--devel/py-cached-path/distinfo3
-rw-r--r--devel/py-cached-path/pkg-descr10
4 files changed, 45 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 2688c4a84456..82e8c23bab20 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4646,6 +4646,7 @@
SUBDIR += py-bump2version
SUBDIR += py-bytecode
SUBDIR += py-cabby
+ SUBDIR += py-cached-path
SUBDIR += py-cached-property
SUBDIR += py-cachetools
SUBDIR += py-cachey
diff --git a/devel/py-cached-path/Makefile b/devel/py-cached-path/Makefile
new file mode 100644
index 000000000000..d384dd7b9b22
--- /dev/null
+++ b/devel/py-cached-path/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= cached-path
+PORTVERSION= 1.8.10
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= File utility for accessing local and remote files uniformly
+WWW= https://github.com/allenai/cached_path
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}boto3>=1.0:www/py-boto3@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}filelock>=3.4:sysutils/py-filelock@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}google-cloud-storage>=1.32.0:www/py-google-cloud-storage@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}huggingface-hub>=0.8.1:misc/py-huggingface-hub@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}rich>=12.1:textproc/py-rich@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}responses>=0:devel/py-responses@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist concurrent
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-cached-path/distinfo b/devel/py-cached-path/distinfo
new file mode 100644
index 000000000000..02be6c75a031
--- /dev/null
+++ b/devel/py-cached-path/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1775414270
+SHA256 (cached_path-1.8.10.tar.gz) = ce80db439e25619800330dcbf1f0516c0ee70a27bd65ffca33aac9f55a56ef1c
+SIZE (cached_path-1.8.10.tar.gz) = 33249
diff --git a/devel/py-cached-path/pkg-descr b/devel/py-cached-path/pkg-descr
new file mode 100644
index 000000000000..09cc496b8507
--- /dev/null
+++ b/devel/py-cached-path/pkg-descr
@@ -0,0 +1,10 @@
+cached_path provides a unified interface for accessing files whether they are
+stored locally or remotely. It supports the following remote backends:
+
+- HTTP and HTTPS URLs
+- Amazon S3
+- Google Cloud Storage
+- Hugging Face Hub
+
+Remote files are cached locally so that subsequent accesses do not require
+re-downloading. The local cache is managed transparently.