Date: Mon, 06 Apr 2026 17:55:50 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 5a151a392916 - main - devel/py-cached-path: New port: File utility for accessing local and remote files uniformly Message-ID: <69d3f3a6.228ae.57fc7049@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=5a151a392916444dc129092413b84098028ddef8 commit 5a151a392916444dc129092413b84098028ddef8 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-04-05 19:34:17 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-04-06 17:55:47 +0000 devel/py-cached-path: New port: File utility for accessing local and remote files uniformly --- devel/Makefile | 1 + devel/py-cached-path/Makefile | 31 +++++++++++++++++++++++++++++++ devel/py-cached-path/distinfo | 3 +++ devel/py-cached-path/pkg-descr | 10 ++++++++++ 4 files changed, 45 insertions(+) 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d3f3a6.228ae.57fc7049>
