freebsd-ports/net/py-blobfile/Makefile
Po-Chuan Hsieh d733ef5984
net/py-blobfile: Add py-blobfile 2.0.2
blobfile is a library that provides a Python-like interface for reading local
and remote files (only from blob storage), with an API similar to open() as well
as some of the os.path and shutil functions. blobfile supports local paths,
Google Cloud Storage paths (gs://<bucket>), and Azure Blob Storage paths
(az://<account>/<container> or
https://<account>.blob.core.windows.net/<container>/).

The main function is BlobFile, which lets you open local and remote files that
act more or less like local ones. There are also a few additional functions such
as basename, dirname, and join, which mostly do the same thing as their os.path
namesakes, only they also support GCS paths and ABS paths.

This library is inspired by TensorFlow's gfile but does not have exactly the
same interface.
2023-08-22 01:01:58 +08:00

29 lines
966 B
Makefile

PORTNAME= blobfile
PORTVERSION= 2.0.2
DISTVERSIONPREFIX= v
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Read GCS, ABS and local paths with the same interface
WWW= https://github.com/blobfile/blobfile
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astor>=0.8.0:devel/py-astor@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=42.0.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0.33.6:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}filelock>=3.0<4:sysutils/py-filelock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}lxml>=4.9<5:devel/py-lxml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pycryptodomex>=3.8<4:security/py-pycryptodomex@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.3,1<3,1:net/py-urllib3@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
USE_GITHUB= yes
.include <bsd.port.mk>