From nobody Mon Aug 21 17:12:58 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RTzZL4pVvz4r2sT; Mon, 21 Aug 2023 17:12:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RTzZL41Cdz4Tl7; Mon, 21 Aug 2023 17:12:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692637978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DzaZ73C5H1zSMX3VTkdCuEPYTjZxjLZR8LvKbgEprow=; b=bnCyWIli1sfLN6XJ/NDe3Hn6T4i/HmuPZiX8ky1p+vmNbE1cbNFhHLRFSeCQjZhFwxGemc Potw9TLf8uyqck8z/gOKOsNhXv5JOZMd+5xprWcJyYfyR/EfS8gNlQ1sqi9EHKfMN+uURp /JyX23C4AhTfIMEHQwJLwBc+iHmxKqDxvOhePdYT6yjqGX9yumlqyDuXpm5o5r2x4VoklO y4BUXaMxvUN8+/1js4ElUb7vWsIWMwscRUxWxfWBmUNP0HgbXTNJ4NMEVGHWfSPrwpMVA3 eoQmjus8WCJyBfJCGh/yxrnmZlNSrqDaUjAjAQivtvS1STPqSxA4JeDtkQp4nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692637978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DzaZ73C5H1zSMX3VTkdCuEPYTjZxjLZR8LvKbgEprow=; b=Kc4QsuBRXe+Yaq9o7zKAEpO6bagb30MffSQO47MAQTAAzAZQctmJENTBiSOk+4enf5ULfx V8RPDoMSAtsr1LAkRcq7cSjQX+BEKKiC7wupcUj/qWJ1JzYkaw0jGJRU55pwNf0XKOkSMw 24SFwBEJdayozOIE7tm7gBwy/aPQXnvBhcszDWlQJ5c95HbrLekvyLYRS1yHdhKUqouSWX OERzb96ffp5mBVlva767KLhk5BNagFtUZOFeVEE5FDT1f7p7S3BxMWUI5RbMp1v/Clm3y4 5ryTo1Ktxdx4EEPcxz5xlViTgVRLyOzYbqWFDnZHu5cCNpuAVsSRuZq+eAg11g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692637978; a=rsa-sha256; cv=none; b=S9CZBc/8zBuBrjevKTt+gKZB+XvwvG+uRHVCThm6MNCE7ZXZOLdVkvrjk9eDQGnAfwxVQv 3FMRTe4VUIIFQu9GqZ3DWWioWULYBzT1qHhX50sajoVNi+cKZjzQNu2b860/r6qO4lkakq ZFUznh3JDaNjLTbViaLthNYoMLpuZbCZCixVyhK/i72fj9ZCnj2q2J/Mn/XjIV+aayfoOm vS5ynazThHVbzYjuMunszYpVE2hodEH1HVPJLjgnoJmBOB6Id1n8Nuy98Gh0MEWYll3LQj VGRJHwXHGBlaBBkTc/c6EnjQkQ5W7wDaBxYcvbNGG4FlFlPkK3KoNYAupfmvBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RTzZL378jzTtl; Mon, 21 Aug 2023 17:12:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37LHCwf3097436; Mon, 21 Aug 2023 17:12:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37LHCwmF097433; Mon, 21 Aug 2023 17:12:58 GMT (envelope-from git) Date: Mon, 21 Aug 2023 17:12:58 GMT Message-Id: <202308211712.37LHCwmF097433@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: d733ef5984f7 - main - net/py-blobfile: Add py-blobfile 2.0.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d733ef5984f7ad2dce97acf09cb2619453f25415 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d733ef5984f7ad2dce97acf09cb2619453f25415 commit d733ef5984f7ad2dce97acf09cb2619453f25415 Author: Po-Chuan Hsieh AuthorDate: 2023-08-21 16:51:58 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-08-21 17:01:58 +0000 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://), and Azure Blob Storage paths (az:/// or https://.blob.core.windows.net//). 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. --- net/Makefile | 1 + net/py-blobfile/Makefile | 29 +++++++++++++++++++++++++++++ net/py-blobfile/distinfo | 3 +++ net/py-blobfile/files/patch-pyproject.toml | 14 ++++++++++++++ net/py-blobfile/pkg-descr | 14 ++++++++++++++ 5 files changed, 61 insertions(+) diff --git a/net/Makefile b/net/Makefile index 9f35b556f5f8..47d3553763cc 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1040,6 +1040,7 @@ SUBDIR += py-amqplib SUBDIR += py-anonfile SUBDIR += py-avahi + SUBDIR += py-blobfile SUBDIR += py-bonsai SUBDIR += py-cepa SUBDIR += py-cjdns diff --git a/net/py-blobfile/Makefile b/net/py-blobfile/Makefile new file mode 100644 index 000000000000..9e030fbfdb32 --- /dev/null +++ b/net/py-blobfile/Makefile @@ -0,0 +1,29 @@ +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 diff --git a/net/py-blobfile/distinfo b/net/py-blobfile/distinfo new file mode 100644 index 000000000000..18cc15d09bdd --- /dev/null +++ b/net/py-blobfile/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1692211617 +SHA256 (blobfile-blobfile-v2.0.2_GH0.tar.gz) = 685a36a7f90bde5c81b7d7f08a472c4dd63e24772b165be16a752213f8075cf5 +SIZE (blobfile-blobfile-v2.0.2_GH0.tar.gz) = 83871 diff --git a/net/py-blobfile/files/patch-pyproject.toml b/net/py-blobfile/files/patch-pyproject.toml new file mode 100644 index 000000000000..0f913e50f4b8 --- /dev/null +++ b/net/py-blobfile/files/patch-pyproject.toml @@ -0,0 +1,14 @@ +--- pyproject.toml.orig 2023-04-21 05:36:25 UTC ++++ pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] + requires = [ +- "setuptools == 42.0.0", +- "wheel == 0.33.6", +- "astor == 0.8.0", +-] +\ No newline at end of file ++ "setuptools >= 42.0.0", ++ "wheel >= 0.33.6", ++ "astor >= 0.8.0", ++] diff --git a/net/py-blobfile/pkg-descr b/net/py-blobfile/pkg-descr new file mode 100644 index 000000000000..28dea92d06b4 --- /dev/null +++ b/net/py-blobfile/pkg-descr @@ -0,0 +1,14 @@ +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://), and Azure Blob Storage paths +(az:/// or +https://.blob.core.windows.net//). + +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.