Skip to content

dev: skip filesystems whose class can't be loaded when generating flavours - #600

Open
ap-- wants to merge 1 commit into
fsspec:mainfrom
ap--:dev-flavours-skip-unavailable
Open

ap-- wants to merge 1 commit into
fsspec:mainfrom
ap--:dev-flavours-skip-unavailable

Conversation

@ap--

@ap-- ap-- commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Fixes the flavour generation in dependabot's #596 (failed job):

AttributeError: Azure Data Lake Storage (ADLS) Gen1 has been retired since February 29, 2024 and is no longer supported by adlfs. ...
module 'adlfs' has no attribute 'AzureDatalakeFileSystem'.

adlfs 2026.8.0 removed AzureDatalakeFileSystem (adl://). fsspec's registry still points adl to it, so get_filesystem_class("adl") raises an AttributeError instead of an ImportError, and generate_flavours.py crashed. Such protocols are now listed with their error in the header of upath/_flavour_sources.py, like protocols whose package can't be imported.

Checked locally:

  • with the current pins, nox -s flavours-codegen produces an unchanged upath/_flavour_sources.py
  • with adlfs==2026.8.0, it succeeds: adl is listed under "protocol import errors", AzureDatalakeFileSystemFlavour is dropped, and AzureBlobFileSystemFlavour._strip_protocol follows adlfs. pre-commit passes on the regenerated module, and so does the test suite (py3.15, without the docker suites), including the adl:// cases.

#596 also bumps fsspec, s3fs and gcsfs. Regenerating the gcs and data flavours from those versions breaks existing tests, which is a separate change.

…vours

adlfs 2026.8.0 removed AzureDatalakeFileSystem (ADLS Gen1, adl://),
and looking it up raises an AttributeError instead of an ImportError.
This crashed the flavour generation in dependabot pull requests. List
these protocols with their error in the module header, like protocols
whose package can't be imported.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant