From d6a9b23e068ce1ad5ecbfe834d45dd2d178b7dab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 11:14:13 +0000 Subject: [PATCH 1/2] build(deps): bump the pip-dependencies group across 1 directory with 7 updates Bumps the pip-dependencies group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [fsspec](https://github.com/fsspec/filesystem_spec) | `2025.10.0` | `2026.9.0` | | [s3fs](https://github.com/fsspec/s3fs) | `2025.10.0` | `2026.9.0` | | [gcsfs](https://github.com/fsspec/gcsfs) | `2025.10.0` | `2026.10.1` | | [adlfs](https://github.com/fsspec/adlfs) | `2025.8.0` | `2026.8.0` | | [huggingface-hub](https://github.com/huggingface/huggingface_hub) | `1.8.0` | `2.4.0` | | [lakefs-spec](https://github.com/aai-institute/lakefs-spec) | `0.12.0` | `0.15.1` | | [fsspec-xrootd](https://github.com/scikit-hep/fsspec-xrootd) | `0.5.4` | `0.5.5` | Updates `fsspec` from 2025.10.0 to 2026.9.0 - [Commits](https://github.com/fsspec/filesystem_spec/compare/2025.10.0...2026.9.0) Updates `s3fs` from 2025.10.0 to 2026.9.0 - [Changelog](https://github.com/fsspec/s3fs/blob/main/release-procedure.md) - [Commits](https://github.com/fsspec/s3fs/compare/2025.10.0...2026.9.0) Updates `gcsfs` from 2025.10.0 to 2026.10.1 - [Release notes](https://github.com/fsspec/gcsfs/releases) - [Commits](https://github.com/fsspec/gcsfs/compare/2025.10.0...2026.10.1) Updates `adlfs` from 2025.8.0 to 2026.8.0 - [Release notes](https://github.com/fsspec/adlfs/releases) - [Changelog](https://github.com/fsspec/adlfs/blob/main/CHANGELOG.md) - [Commits](https://github.com/fsspec/adlfs/compare/2025.8.0...2026.8.0) Updates `huggingface-hub` from 1.8.0 to 2.4.0 - [Release notes](https://github.com/huggingface/huggingface_hub/releases) - [Commits](https://github.com/huggingface/huggingface_hub/compare/v1.8.0...v2.4.0) Updates `lakefs-spec` from 0.12.0 to 0.15.1 - [Release notes](https://github.com/aai-institute/lakefs-spec/releases) - [Commits](https://github.com/aai-institute/lakefs-spec/compare/v0.12.0...v0.15.1) Updates `fsspec-xrootd` from 0.5.4 to 0.5.5 - [Release notes](https://github.com/scikit-hep/fsspec-xrootd/releases) - [Commits](https://github.com/scikit-hep/fsspec-xrootd/compare/v0.5.4...v0.5.5) --- updated-dependencies: - dependency-name: adlfs dependency-version: 2026.8.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: pip-dependencies - dependency-name: fsspec dependency-version: 2026.9.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: pip-dependencies - dependency-name: fsspec-xrootd dependency-version: 0.5.5 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: pip-dependencies - dependency-name: gcsfs dependency-version: 2026.10.1 dependency-type: direct:development update-type: version-update:semver-major dependency-group: pip-dependencies - dependency-name: huggingface-hub dependency-version: 2.4.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: pip-dependencies - dependency-name: lakefs-spec dependency-version: 0.15.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: pip-dependencies - dependency-name: s3fs dependency-version: 2026.9.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: pip-dependencies ... Signed-off-by: dependabot[bot] --- dev/requirements.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dev/requirements.txt b/dev/requirements.txt index 36f27576..27e2f22e 100644 --- a/dev/requirements.txt +++ b/dev/requirements.txt @@ -1,18 +1,18 @@ -fsspec[git,hdfs,dask,http,sftp,smb]==2025.10.0 +fsspec[git,hdfs,dask,http,sftp,smb]==2026.9.0 # these dependencies define their own filesystems -adlfs==2025.8.0 +adlfs==2026.8.0 boxfs==0.3.0 dropboxdrivefs==1.4.1 -gcsfs==2025.10.0 -s3fs==2025.10.0 +gcsfs==2026.10.1 +s3fs==2026.9.0 ocifs==1.3.4 webdav4[fsspec]==0.11.0 # gfrivefs @ git+https://github.com/fsspec/gdrivefs@master broken ... morefs[asynclocalfs]==0.2.2 dvc==3.67.1 -huggingface_hub==1.8.0 -lakefs-spec==0.12.0 +huggingface_hub==2.4.0 +lakefs-spec==0.15.1 ossfs==2025.5.0 -fsspec-xrootd==0.5.4 +fsspec-xrootd==0.5.5 wandbfs==0.0.2 From ad380bdea1c56401f58668f5976e83a03dbc71ae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 15:20:59 +0000 Subject: [PATCH 2/2] Auto-update generated flavours --- upath/_flavour_sources.py | 224 ++++++++++++++++---------------------- 1 file changed, 92 insertions(+), 132 deletions(-) diff --git a/upath/_flavour_sources.py b/upath/_flavour_sources.py index 5fb15380..59a76225 100644 --- a/upath/_flavour_sources.py +++ b/upath/_flavour_sources.py @@ -24,9 +24,10 @@ # - dir # - filecache # protocol import errors: +# - adl (Azure Data Lake Storage (ADLS) Gen1 has been retired since February 29, 2024 and is no longer supported by adlfs. It is recommended to use the az:// protocol and/or adlfs.AzureBlobFileSystem class which support Azure Blob Storage and Azure Data Lake Storage Gen2. module 'adlfs' has no attribute 'AzureDatalakeFileSystem') # - gdrive (Please install gdrive_fs for access to Google Drive) # - generic (GenericFileSystem: '_strip_protocol' not a classmethod) -# - pyscript (Install requests (cpython) or run in pyscript) +# - pyscript (This only runs in a pyscript context) # - tos (Install tosfs to access ByteDance volcano engine Tinder Object Storage) # - tosfs (Install tosfs to access ByteDance volcano engine Tinder Object Storage) # @@ -89,7 +90,7 @@ def __init_subclass__(cls: Any, **kwargs): class AbstractFileSystemFlavour(FileSystemFlavourBase): __orig_class__ = 'fsspec.spec.AbstractFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol: str | tuple[str, ...] = 'abstract' root_marker: Literal['', '/'] = '' sep: Literal['/'] = '/' @@ -138,7 +139,7 @@ def _parent(cls, path): class AsyncFileSystemWrapperFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.asyn_wrapper.AsyncFileSystemWrapper' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('asyncwrapper', 'async_wrapper') root_marker = '' sep = '/' @@ -155,14 +156,12 @@ class AsyncLocalFileSystemFlavour(AbstractFileSystemFlavour): @classmethod def _strip_protocol(cls, path): path = stringify_path(path) - if path.startswith("file://"): - path = path[7:] - elif path.startswith("file:"): - path = path[5:] - elif path.startswith("local://"): - path = path[8:] - elif path.startswith("local:"): - path = path[6:] + protos = (cls.protocol,) if isinstance(cls.protocol, str) else cls.protocol + prefixes = (protocol + sep for protocol in protos for sep in ("://", ":")) + for prefix in prefixes: + if path.startswith(prefix): + path = path.removeprefix(prefix) + break path = make_path_posix(path) if os.sep != "/": @@ -210,7 +209,7 @@ def _parent(cls, path): class AzureBlobFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'adlfs.spec.AzureBlobFileSystem' - __orig_version__ = '2025.8.0' + __orig_version__ = '2026.8.0' protocol = ('abfs', 'az', 'abfss') root_marker = '' sep = '/' @@ -235,7 +234,15 @@ def _strip_protocol(cls, path: str): STORE_SUFFIX = ".dfs.core.windows.net" logger.debug(f"_strip_protocol for {path}") - if not path.startswith(("abfs://", "az://", "abfss://")): + if isinstance(cls.protocol, str): + # The protocol can be either a string or a tuple of strings. + # While the default protocol is a tuple, a user can override the protocol to be a string. + # So, this handles the case where the user has overridden the protocol, restricting + # supported protocols to a single string. + protocol_startswith = (f"{cls.protocol}://",) + else: + protocol_startswith = tuple(f"{proto}://" for proto in cls.protocol) + if not path.startswith(protocol_startswith): path = path.lstrip("/") path = "abfs://" + path ops = infer_storage_options(path) @@ -281,28 +288,6 @@ def _get_kwargs_from_urls(urlpath): return out -class AzureDatalakeFileSystemFlavour(AbstractFileSystemFlavour): - __orig_class__ = 'adlfs.gen1.AzureDatalakeFileSystem' - __orig_version__ = '2025.8.0' - protocol = ('adl',) - root_marker = '' - sep = '/' - - @classmethod - def _strip_protocol(cls, path): - ops = infer_storage_options(path) - return ops["path"] - - @staticmethod - def _get_kwargs_from_urls(paths): - """Get the store_name from the urlpath and pass to storage_options""" - ops = infer_storage_options(paths) - out = {} - if ops.get("host", None): - out["store_name"] = ops["host"] - return out - - class BoxFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'boxfs.boxfs.BoxFileSystem' __orig_version__ = '0.3.0' @@ -322,7 +307,7 @@ def _strip_protocol(cls, path) -> str: class DaskWorkerFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.dask.DaskWorkerFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('dask',) root_marker = '' sep = '/' @@ -338,16 +323,29 @@ def _get_kwargs_from_urls(path): class DataFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.data.DataFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('data',) root_marker = '' sep = '' # type: ignore[assignment] altsep = ' ' # type: ignore[assignment] + @classmethod + def _strip_protocol(cls, path): + if isinstance(path, list): + return [cls._strip_protocol(p) for p in path] + path = stringify_path(path) + if path.startswith("data://"): + path = path[7:] + elif path.startswith("data:"): + path = path[5:] + # Do NOT strip trailing slashes, as they may be meaningful base64 characters + # or percent-encoded data content + return path + class DatabricksFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.dbfs.DatabricksFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('dbfs',) root_marker = '' sep = '/' @@ -378,28 +376,9 @@ class DropboxDriveFileSystemFlavour(AbstractFileSystemFlavour): sep = '/' -class FTPFileSystemFlavour(AbstractFileSystemFlavour): - __orig_class__ = 'fsspec.implementations.ftp.FTPFileSystem' - __orig_version__ = '2025.10.0' - protocol = ('ftp',) - root_marker = '/' - sep = '/' - - @classmethod - def _strip_protocol(cls, path): - return "/" + infer_storage_options(path)["path"].lstrip("/").rstrip("/") - - @staticmethod - def _get_kwargs_from_urls(urlpath): - out = infer_storage_options(urlpath) - out.pop("path", None) - out.pop("protocol", None) - return out - - -class GCSFileSystemFlavour(AbstractFileSystemFlavour): - __orig_class__ = 'gcsfs.core.GCSFileSystem' - __orig_version__ = '2025.10.0' +class ExtendedGcsFileSystemFlavour(AbstractFileSystemFlavour): + __orig_class__ = 'gcsfs.extended_gcsfs.ExtendedGcsFileSystem' + __orig_version__ = '2026.10.1' protocol = ('gs', 'gcs') root_marker = '' sep = '/' @@ -425,58 +404,29 @@ def _get_kwargs_from_urls(cls, path): return {"version_aware": True} return {} - @classmethod - def _split_path(cls, path, version_aware=False): - """ - Normalise GCS path string into bucket and key. - Parameters - ---------- - path : string - Input path, like `gcs://mybucket/path/to/file`. - Path is of the form: '[gs|gcs://]bucket[/key][?querystring][#fragment]' +class FTPFileSystemFlavour(AbstractFileSystemFlavour): + __orig_class__ = 'fsspec.implementations.ftp.FTPFileSystem' + __orig_version__ = '2026.9.0' + protocol = ('ftp',) + root_marker = '/' + sep = '/' - GCS allows object generation (object version) to be specified in either - the URL fragment or the `generation` query parameter. When provided, - the fragment will take priority over the `generation` query paramenter. + @classmethod + def _strip_protocol(cls, path): + return "/" + infer_storage_options(path)["path"].lstrip("/").rstrip("/") - Returns - ------- - (bucket, key, generation) tuple - """ - path = cls._strip_protocol(path).lstrip("/") - if "/" not in path: - return path, "", None - bucket, keypart = path.split("/", 1) - key = keypart - generation = None - if version_aware: - parts = urlsplit(keypart) - try: - if parts.fragment: - generation = parts.fragment - elif parts.query: - parsed = parse_qs(parts.query) - if "generation" in parsed: - generation = parsed["generation"][0] - # Sanity check whether this could be a valid generation ID. If - # it is not, assume that # or ? characters are supposed to be - # part of the object name. - if generation is not None: - int(generation) - key = parts.path - except ValueError: - generation = None - return ( - bucket, - key, - generation, - ) + @staticmethod + def _get_kwargs_from_urls(urlpath): + out = infer_storage_options(urlpath) + out.pop("path", None) + out.pop("protocol", None) + return out class GistFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.gist.GistFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('gist',) root_marker = '' sep = '/' @@ -524,7 +474,7 @@ def _get_kwargs_from_urls(path): class GitFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.git.GitFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('git',) root_marker = '' sep = '/' @@ -551,7 +501,7 @@ def _get_kwargs_from_urls(path): class GithubFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.github.GithubFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('github',) root_marker = '' sep = '/' @@ -576,7 +526,7 @@ def _get_kwargs_from_urls(path): class HTTPFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.http.HTTPFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('http', 'https') root_marker = '' sep = '/' @@ -597,7 +547,7 @@ def _parent(cls, path): class HadoopFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.arrow.HadoopFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('hdfs', 'arrow_hdfs') root_marker = '/' sep = '/' @@ -627,10 +577,17 @@ def _get_kwargs_from_urls(path): out["replication"] = int(queries["replication"][0]) return out + def _parent(self, path): + if self.root_marker: + return super()._parent(path) + + path = self._strip_protocol(path).lstrip("/") + return path.rsplit("/", 1)[0] if "/" in path else "" + class HfFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'huggingface_hub.hf_file_system.HfFileSystem' - __orig_version__ = '1.8.0' + __orig_version__ = '2.4.0' protocol = ('hf',) root_marker = '' sep = '/' @@ -638,7 +595,7 @@ class HfFileSystemFlavour(AbstractFileSystemFlavour): class JupyterFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.jupyter.JupyterFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('jupyter', 'jlab') root_marker = '' sep = '/' @@ -646,7 +603,7 @@ class JupyterFileSystemFlavour(AbstractFileSystemFlavour): class LakeFSFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'lakefs_spec.spec.LakeFSFileSystem' - __orig_version__ = '0.12.0' + __orig_version__ = '0.15.1' protocol = ('lakefs',) root_marker = '' sep = '/' @@ -664,7 +621,7 @@ def _strip_protocol(cls, path): class LibArchiveFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.libarchive.LibArchiveFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('libarchive',) root_marker = '' sep = '/' @@ -677,7 +634,7 @@ def _strip_protocol(cls, path): class LocalFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.local.LocalFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('file', 'local') root_marker = '/' sep = '/' @@ -686,14 +643,12 @@ class LocalFileSystemFlavour(AbstractFileSystemFlavour): @classmethod def _strip_protocol(cls, path): path = stringify_path(path) - if path.startswith("file://"): - path = path[7:] - elif path.startswith("file:"): - path = path[5:] - elif path.startswith("local://"): - path = path[8:] - elif path.startswith("local:"): - path = path[6:] + protos = (cls.protocol,) if isinstance(cls.protocol, str) else cls.protocol + prefixes = (protocol + sep for protocol in protos for sep in ("://", ":")) + for prefix in prefixes: + if path.startswith(prefix): + path = path.removeprefix(prefix) + break path = make_path_posix(path) if os.sep != "/": @@ -755,7 +710,7 @@ def _strip_protocol(cls, path): class MemoryFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.memory.MemoryFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('memory',) root_marker = '/' sep = '/' @@ -853,7 +808,7 @@ class OverlayFileSystemFlavour(AbstractFileSystemFlavour): class ReferenceFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.reference.ReferenceFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('reference',) root_marker = '' sep = '/' @@ -861,7 +816,7 @@ class ReferenceFileSystemFlavour(AbstractFileSystemFlavour): class S3FileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 's3fs.core.S3FileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('s3', 's3a') root_marker = '' sep = '/' @@ -889,7 +844,7 @@ def _get_kwargs_from_urls(urlpath): class SFTPFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.sftp.SFTPFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('sftp', 'ssh') root_marker = '' sep = '/' @@ -908,7 +863,7 @@ def _get_kwargs_from_urls(urlpath): class SMBFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.smb.SMBFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('smb',) root_marker = '' sep = '/' @@ -928,7 +883,7 @@ def _get_kwargs_from_urls(path): class SimpleCacheFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.cached.SimpleCacheFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('simplecache',) root_marker = '' sep = '/' @@ -937,11 +892,16 @@ class SimpleCacheFileSystemFlavour(AbstractFileSystemFlavour): class TarFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.tar.TarFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('tar',) root_marker = '' sep = '/' + @classmethod + def _strip_protocol(cls, path): + # file paths are always relative to the archive root + return super()._strip_protocol(path).lstrip("/") + class WandbFSFlavour(AbstractFileSystemFlavour): __orig_class__ = 'wandbfs._wandbfs.WandbFS' @@ -953,7 +913,7 @@ class WandbFSFlavour(AbstractFileSystemFlavour): class WebHDFSFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.webhdfs.WebHDFS' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('webhdfs', 'webHDFS') root_marker = '' sep = '/' @@ -988,7 +948,7 @@ def _strip_protocol(cls, path: str) -> str: class XRootDFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec_xrootd.xrootd.XRootDFileSystem' - __orig_version__ = '0.5.4' + __orig_version__ = '0.5.5' protocol = ('root',) root_marker = '/' sep = '/' @@ -1014,7 +974,7 @@ def _get_kwargs_from_urls(u: str) -> dict[Any, Any]: class ZipFileSystemFlavour(AbstractFileSystemFlavour): __orig_class__ = 'fsspec.implementations.zip.ZipFileSystem' - __orig_version__ = '2025.10.0' + __orig_version__ = '2026.9.0' protocol = ('zip',) root_marker = '' sep = '/'