Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Changelog follow https://keepachangelog.com/ format.

## [Unreleased]

* `epath`:
* [fsspec](https://filesystem-spec.readthedocs.io/en/latest/) is now the
default backend even if TensorFlow is installed. This means that you
need to install [gcsfs](https://gcsfs.readthedocs.io/en/latest/) or
[s3fs](https://github.com/s3fs-fuse/s3fs-fuse) to read from respectively
GCS or S3.
* `epy`:
* Add `epy.is_test` to check whether we're running in a test environment.
* Add `epy.typing.Json`.
Expand Down
5 changes: 0 additions & 5 deletions etils/epath/gpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ def _uri_scheme(self) -> Optional[str]:
def _backend(self) -> backend_lib.Backend:
try:
backend = _PREFIX_TO_BACKEND[self._uri_scheme]
# Choose tf_backend if tf is installed. We don't use FSSpec by default
# for retro-compatibility, because needed dependencies (gcsfs or s3fs)
# may not be installed. fsspec_backend was indeed introduced later.
if _is_tf_installed() and self._uri_scheme is not None:
return backend_lib.tf_backend
return backend
except KeyError:
supported = ', '.join(f'`{k}://`' for k in _PREFIX_TO_BACKEND)
Expand Down