From 6e5e62857b4dbacb8de14bcd0165b23e6b67b977 Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Wed, 23 Jun 2021 18:52:32 +0545 Subject: [PATCH] Bump fsspec version (#6214) * Bump fsspec version * local: use fsspec 2021.06.0 with a temp hack Co-authored-by: Ruslan Kuprieiev --- dvc/fs/local.py | 4 +++- setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dvc/fs/local.py b/dvc/fs/local.py index d614646e18..fce8c6cfca 100644 --- a/dvc/fs/local.py +++ b/dvc/fs/local.py @@ -32,7 +32,9 @@ def open(path_info, mode="r", encoding=None, **kwargs): def exists(self, path_info) -> bool: assert isinstance(path_info, str) or path_info.scheme == "local" - return self.fs.exists(path_info) + # NOTE: os.fspath could be removed after fsspec 2021.06.1 + # https://github.com/intake/filesystem_spec/issues/666 + return self.fs.exists(os.fspath(path_info)) def isfile(self, path_info) -> bool: return os.path.isfile(path_info) diff --git a/setup.py b/setup.py index f19374f544..cc31722140 100644 --- a/setup.py +++ b/setup.py @@ -88,7 +88,7 @@ def run(self): "python-benedict>=0.21.1", "pyparsing==2.4.7", "typing_extensions>=3.7.4", - "fsspec @ git+https://github.com/intake/filesystem_spec.git", + "fsspec==2021.6.0", "diskcache>=5.2.1", ]