diff --git a/dvc/fs/__init__.py b/dvc/fs/__init__.py index d2554241491..ed6b99d580d 100644 --- a/dvc/fs/__init__.py +++ b/dvc/fs/__init__.py @@ -10,6 +10,8 @@ Schemes, generic, get_fs_cls, + known_implementations, + localfs, registry, system, ) @@ -19,13 +21,26 @@ ConfigError, RemoteMissingDepsError, ) -from dvc_objects.fs.implementations.local import localfs # noqa: F401 from dvc_objects.fs.path import Path # noqa: F401 from .data import DataFileSystem # noqa: F401 from .dvc import DvcFileSystem # noqa: F401 from .git import GitFileSystem # noqa: F401 +known_implementations.update( + { + "dvc": { + "class": "dvc.fs.dvc.DvcFileSystem", + "err": "dvc is supported, but requires 'dvc' to be installed", + }, + "git": { + "class": "dvc.fs.git.GitFileSystem", + "err": "git is supported, but requires 'dvc' to be installed", + }, + } +) + + # pylint: enable=unused-import diff --git a/dvc/info.py b/dvc/info.py index d804363cb6e..634f06841cf 100644 --- a/dvc/info.py +++ b/dvc/info.py @@ -90,10 +90,13 @@ def _get_linktype_support_info(repo): def _get_supported_remotes(): supported_remotes = [] - for scheme in registry: + for scheme in registry.items(): if scheme in [Schemes.LOCAL, Schemes.MEMORY]: continue + if scheme in ("dvc", "git"): + continue + try: fs_cls = registry[scheme] except ImportError: diff --git a/setup.cfg b/setup.cfg index 72a4fa4c84f..dc0d34777c9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -68,7 +68,7 @@ install_requires = dvc-render==0.0.9 dvc-task==0.1.2 dvclive>=0.10.0 - dvc-data==0.1.20 + dvc-data==0.1.21 dvc-http==0.0.2 hydra-core>=1.1.0