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.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-blobfile listed in the above command, you can pick from the names under the Packages section.
*/*: switch dependency from devel/py-lxml5 to devel/py-lxml
Currently, there are two versions of python XML processing library
which conflict each other in the ports tree, namely:
- devel/py-lxml5 (now at version 5.4.0)
- devel/py-lxml (now at version 6.0.1)
To avoid the situation that some ports depend on py-lxml5 and some
others do on py-lxml (by switching dependencies individually), this
commit switches the dependencies from py-lxml5 to py-lxml at once.
Additional note: There are still two ports (textproc/py-rdflib and
www/py-draftjs-exporter) depending on py-lxml5 since they limit upper
version to less than 6.
PR: 289491
Approved by: Michiel van Baak Jansen <michiel@vanbaak.eu>, arrowd,
crees, madpilot, delphij, marcus, nivit, kai,
skreuzer, fluffy, bofh, thierry, stephen, sunpoet,
0mp, Eric Camachat <eric@camachat.org>
*/*: update dependency on devel/py-lxml to devel/py-lxml5 (2nd attempt)
This is a follow up to the commit 230fb2661c78, which updated some
ports' dependencies on devel/py-lxml to devel/py-lxml5. It was an
attempt to follow the dependency change of
www/py-beautifulsoup. However, the switch was incomplete and broke
some other ports.
It has turned out that the ports depending on devel/py-lxml (at
version 4.9.3) does not limit their dependencies' upper bound to 4.x
except for one (devel/py-pymaven-patch). So updating them to
devel/py-lxml5 (at version 5.4.0) should cause no harm.
This commit switch dependencies of all the ports (except
devel/py-pymaven-patch) to devel/py-lxml5 avoid potential conflicts.
Co-authored-by: Daniel Engberg <diizzy@FreeBSD.org>
PR: 287144, 288047
Reported by: makc (via ports-committers),
vvd (PR 288047),
diizzy (PR 287144)
Approved by: portmgr (chase dependency change, unbreak build)
Fixes: 230fb2661c78 (*/*: update dependency on devel/py-lxml to devel/py-lxml5)
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.