diff --git a/pins/cache.py b/pins/cache.py index 167d2f0..d536df2 100644 --- a/pins/cache.py +++ b/pins/cache.py @@ -5,13 +5,18 @@ import shutil import urllib.parse -from fsspec.implementations.cached import SimpleCacheFileSystem, hash_name +from fsspec.implementations.cached import SimpleCacheFileSystem from fsspec import register_implementation from pathlib import Path from .config import get_cache_dir from .utils import inform +try: + from fsspec.implementations.cached import hash_name +except ImportError: + hash_name = SimpleCacheFileSystem(target_protocol="").hash_name + _log = logging.getLogger(__name__) diff --git a/setup.cfg b/setup.cfg index 340d088..2110a07 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,7 +25,7 @@ zipsafe = False python_requires = >=3.7 install_requires = - fsspec>=0.8.0,<2023.9.0 + fsspec>=0.8.0 pyyaml>=3.13 xxhash>=1.0.0 pandas>=0.23.0