Skip to content

Commit 2453c05

Browse files
authored
add DVCFileSystem to the registry (#1049)
* add DVCFileSystem to the registry * docs: add link to dvc
1 parent 742a103 commit 2453c05

File tree

5 files changed

+7
-78
lines changed

5 files changed

+7
-78
lines changed

Diff for: .coveragerc

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
omit =
33
*/test_*.py
44
fsspec/_version.py
5-
fsspec/implementations/dvc.py
65
fsspec/implementations/github.py
76
fsspec/implementations/hdfs.py
87
source =

Diff for: docs/source/api.rst

+2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ Other Known Implementations
211211
- `wandbfs`_ to access Wandb run data (experimental)
212212
- `ossfs`_ for Alibaba Cloud (Aliyun) Object Storage System (OSS)
213213
- `webdav4`_ for WebDAV
214+
- `dvc`_ to access DVC/Git repository as a filesystem
214215

215216
.. _s3fs: https://s3fs.readthedocs.io/en/latest/
216217
.. _gcsfs: https://gcsfs.readthedocs.io/en/latest/
@@ -222,6 +223,7 @@ Other Known Implementations
222223
.. _wandbfs: https://github.com/jkulhanek/wandbfs
223224
.. _ossfs: https://github.com/fsspec/ossfs
224225
.. _webdav4: https://github.com/skshetry/webdav4
226+
.. _dvc: https://github.com/iterative/dvc
225227

226228
.. _readbuffering:
227229

Diff for: fsspec/implementations/dvc.py

-76
This file was deleted.

Diff for: fsspec/registry.py

+4
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ def register_implementation(name, cls, clobber=True, errtxt=None):
202202
"class": "webdav4.fsspec.WebdavFileSystem",
203203
"err": "Install webdav4 to access WebDAV",
204204
},
205+
"dvc": {
206+
"class": "dvc.api.DVCFileSystem",
207+
"err": "Install dvc to access DVCFileSystem",
208+
},
205209
"root": {
206210
"class": "fsspec_xrootd.XRootDFileSystem",
207211
"err": "Install fsspec-xrootd to access xrootd storage system."

Diff for: setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ignore =
2525

2626
[isort]
2727
known_first_party=fsspec
28-
known_third_party=aiohttp,dask,distributed,dvc,fuse,libarchive,numpy,panel,paramiko,pyarrow,pygit2,pytest,requests,s3fs,setuptools,smbclient
28+
known_third_party=aiohttp,dask,distributed,fuse,libarchive,numpy,panel,paramiko,pyarrow,pygit2,pytest,requests,s3fs,setuptools,smbclient
2929
multi_line_output=3
3030
include_trailing_comma=True
3131
force_grid_wrap=0

0 commit comments

Comments
 (0)