dvc-objects 0.25.0__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dvc-objects-0.25.0/src/dvc_objects.egg-info → dvc-objects-1.0.0}/PKG-INFO +1 -1
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/base.py +7 -3
- {dvc-objects-0.25.0 → dvc-objects-1.0.0/src/dvc_objects.egg-info}/PKG-INFO +1 -1
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/.cruft.json +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/.gitattributes +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/.github/dependabot.yml +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/.github/workflows/release.yml +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/.github/workflows/tests.yml +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/.github/workflows/update-template.yaml +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/.gitignore +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/.pre-commit-config.yaml +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/CODE_OF_CONDUCT.rst +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/CONTRIBUTING.rst +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/LICENSE +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/README.rst +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/noxfile.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/pyproject.toml +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/setup.cfg +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/__init__.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/_tqdm.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/db.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/errors.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/executors.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/__init__.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/callbacks.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/errors.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/generic.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/local.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/memory.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/path.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/scheme.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/system.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/fs/utils.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/obj.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/py.typed +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects/transfer.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects.egg-info/SOURCES.txt +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects.egg-info/dependency_links.txt +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects.egg-info/not-zip-safe +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects.egg-info/requires.txt +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/src/dvc_objects.egg-info/top_level.txt +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/__init__.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/conftest.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/fs/__init__.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/fs/test_callbacks.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/fs/test_localfs.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/fs/test_system.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/fs/test_utils.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/test_odb.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/test_reflink.py +0 -0
- {dvc-objects-0.25.0 → dvc-objects-1.0.0}/tests/test_transfer.py +0 -0
|
@@ -107,11 +107,15 @@ class FileSystem:
|
|
|
107
107
|
self.jobs = kwargs.get("jobs") or self._JOBS
|
|
108
108
|
self.hash_jobs = kwargs.get("checksum_jobs") or self.HASH_JOBS
|
|
109
109
|
self._config = kwargs
|
|
110
|
-
self.fs_args: Dict[str, Any] = {"skip_instance_cache": True}
|
|
111
|
-
self.fs_args.update(self._prepare_credentials(**kwargs))
|
|
112
110
|
if fs:
|
|
113
111
|
self.fs = fs
|
|
114
112
|
|
|
113
|
+
@cached_property
|
|
114
|
+
def fs_args(self) -> Dict[str, Any]:
|
|
115
|
+
ret = {"skip_instance_cache": True}
|
|
116
|
+
ret.update(self._prepare_credentials(**self._config))
|
|
117
|
+
return ret
|
|
118
|
+
|
|
115
119
|
@property
|
|
116
120
|
def config(self) -> Dict[str, Any]:
|
|
117
121
|
return self._config
|
|
@@ -142,7 +146,7 @@ class FileSystem:
|
|
|
142
146
|
|
|
143
147
|
@cached_property
|
|
144
148
|
def version_aware(self) -> bool:
|
|
145
|
-
return self.
|
|
149
|
+
return self._config.get("version_aware", False)
|
|
146
150
|
|
|
147
151
|
@staticmethod
|
|
148
152
|
def _get_kwargs_from_urls(urlpath: str) -> "Dict[str, Any]":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|