dvc-objects 5.2.0__tar.gz → 5.3.1__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-5.2.0 → dvc_objects-5.3.1}/.github/workflows/release.yml +3 -3
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.github/workflows/tests.yml +2 -2
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.github/workflows/update-template.yaml +1 -1
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.pre-commit-config.yaml +1 -1
- {dvc_objects-5.2.0/src/dvc_objects.egg-info → dvc_objects-5.3.1}/PKG-INFO +4 -3
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/pyproject.toml +4 -2
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/base.py +1 -5
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/utils.py +4 -1
- {dvc_objects-5.2.0 → dvc_objects-5.3.1/src/dvc_objects.egg-info}/PKG-INFO +4 -3
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects.egg-info/SOURCES.txt +2 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects.egg-info/requires.txt +2 -2
- dvc_objects-5.3.1/src/dvc_objects.egg-info/scm_file_list.json +49 -0
- dvc_objects-5.3.1/src/dvc_objects.egg-info/scm_version.json +8 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.cruft.json +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.gitattributes +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.github/dependabot.yml +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.gitignore +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/CODE_OF_CONDUCT.rst +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/CONTRIBUTING.rst +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/LICENSE +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/README.rst +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/noxfile.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/setup.cfg +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/__init__.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/compat.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/db.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/errors.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/executors.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/__init__.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/callbacks.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/errors.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/generic.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/local.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/memory.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/scheme.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/system.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/obj.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/py.typed +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/transfer.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects.egg-info/dependency_links.txt +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects.egg-info/top_level.txt +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/__init__.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/benchmarks/__init__.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/benchmarks/test_fs.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/conftest.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/__init__.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_callbacks.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_generic.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_localfs.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_system.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_utils.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/test_odb.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/test_reflink.py +0 -0
- {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/test_transfer.py +0 -0
|
@@ -17,14 +17,14 @@ jobs:
|
|
|
17
17
|
runs-on: ubuntu-latest
|
|
18
18
|
steps:
|
|
19
19
|
- name: Check out the repository
|
|
20
|
-
uses: actions/checkout@
|
|
20
|
+
uses: actions/checkout@v7
|
|
21
21
|
with:
|
|
22
22
|
fetch-depth: 0
|
|
23
23
|
|
|
24
|
-
- name: Set up Python 3.
|
|
24
|
+
- name: Set up Python 3.15
|
|
25
25
|
uses: actions/setup-python@v6
|
|
26
26
|
with:
|
|
27
|
-
python-version: '3.
|
|
27
|
+
python-version: '3.15'
|
|
28
28
|
|
|
29
29
|
- name: Upgrade pip and nox
|
|
30
30
|
run: |
|
|
@@ -21,11 +21,11 @@ jobs:
|
|
|
21
21
|
fail-fast: false
|
|
22
22
|
matrix:
|
|
23
23
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
24
|
-
pyv: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
|
|
24
|
+
pyv: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
|
|
25
25
|
|
|
26
26
|
steps:
|
|
27
27
|
- name: Check out the repository
|
|
28
|
-
uses: actions/checkout@
|
|
28
|
+
uses: actions/checkout@v7
|
|
29
29
|
with:
|
|
30
30
|
fetch-depth: 0
|
|
31
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dvc-objects
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.3.1
|
|
4
4
|
Summary: dvc objects - filesystem and object-db level abstractions to use in dvc and dvc-data
|
|
5
5
|
Author-email: Treeverse <support@dvc.org>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
16
17
|
Classifier: Development Status :: 4 - Beta
|
|
17
18
|
Requires-Python: >=3.9
|
|
18
19
|
Description-Content-Type: text/x-rst
|
|
@@ -20,12 +21,12 @@ License-File: LICENSE
|
|
|
20
21
|
Requires-Dist: fsspec>=2024.2.0
|
|
21
22
|
Requires-Dist: funcy>=1.14; python_version < "3.12"
|
|
22
23
|
Provides-Extra: tests
|
|
23
|
-
Requires-Dist: pytest<
|
|
24
|
+
Requires-Dist: pytest<10,>=7; extra == "tests"
|
|
24
25
|
Requires-Dist: pytest-sugar; extra == "tests"
|
|
25
26
|
Requires-Dist: pytest-cov>=4.1.0; extra == "tests"
|
|
26
27
|
Requires-Dist: pytest-mock; extra == "tests"
|
|
27
28
|
Requires-Dist: pytest-benchmark; extra == "tests"
|
|
28
|
-
Requires-Dist: pytest-asyncio<2,>=0.
|
|
29
|
+
Requires-Dist: pytest-asyncio<2,>=0.24; extra == "tests"
|
|
29
30
|
Requires-Dist: reflink; extra == "tests"
|
|
30
31
|
Provides-Extra: dev
|
|
31
32
|
Requires-Dist: dvc-objects[tests]; extra == "dev"
|
|
@@ -19,6 +19,7 @@ classifiers = [
|
|
|
19
19
|
"Programming Language :: Python :: 3.12",
|
|
20
20
|
"Programming Language :: Python :: 3.13",
|
|
21
21
|
"Programming Language :: Python :: 3.14",
|
|
22
|
+
"Programming Language :: Python :: 3.15",
|
|
22
23
|
"Development Status :: 4 - Beta",
|
|
23
24
|
]
|
|
24
25
|
requires-python = ">=3.9"
|
|
@@ -34,12 +35,12 @@ Source = "https://github.com/treeverse/dvc-objects"
|
|
|
34
35
|
|
|
35
36
|
[project.optional-dependencies]
|
|
36
37
|
tests = [
|
|
37
|
-
"pytest>=7,<
|
|
38
|
+
"pytest>=7,<10",
|
|
38
39
|
"pytest-sugar",
|
|
39
40
|
"pytest-cov>=4.1.0",
|
|
40
41
|
"pytest-mock",
|
|
41
42
|
"pytest-benchmark",
|
|
42
|
-
"pytest-asyncio>=0.
|
|
43
|
+
"pytest-asyncio>=0.24,<2",
|
|
43
44
|
"reflink",
|
|
44
45
|
]
|
|
45
46
|
dev = [
|
|
@@ -56,6 +57,7 @@ dvc_objects = ["py.typed"]
|
|
|
56
57
|
|
|
57
58
|
[tool.pytest.ini_options]
|
|
58
59
|
addopts = "-ra -Werror --benchmark-skip"
|
|
60
|
+
asyncio_default_fixture_loop_scope = "function"
|
|
59
61
|
|
|
60
62
|
[tool.coverage.run]
|
|
61
63
|
branch = true
|
|
@@ -5,7 +5,7 @@ import ntpath
|
|
|
5
5
|
import os
|
|
6
6
|
import posixpath
|
|
7
7
|
import shutil
|
|
8
|
-
from collections.abc import Iterable, Iterator
|
|
8
|
+
from collections.abc import Iterable, Iterator
|
|
9
9
|
from functools import partial
|
|
10
10
|
from multiprocessing import cpu_count
|
|
11
11
|
from typing import (
|
|
@@ -133,10 +133,6 @@ class FileSystem:
|
|
|
133
133
|
path = self.join(self.getcwd(), path)
|
|
134
134
|
return self.normpath(path)
|
|
135
135
|
|
|
136
|
-
@classmethod
|
|
137
|
-
def commonprefix(cls, paths: Sequence[str]) -> str:
|
|
138
|
-
return cls.flavour.commonprefix(paths)
|
|
139
|
-
|
|
140
136
|
@classmethod
|
|
141
137
|
def commonpath(cls, paths: Iterable[str]) -> str:
|
|
142
138
|
return cls.flavour.commonpath(list(paths))
|
|
@@ -53,7 +53,10 @@ def relpath(path: "AnyFSPath", start: "AnyFSPath" = os.curdir) -> "AnyFSPath":
|
|
|
53
53
|
|
|
54
54
|
path = resolve_network_drive_windows(os.path.abspath(path))
|
|
55
55
|
start = resolve_network_drive_windows(start)
|
|
56
|
-
|
|
56
|
+
try:
|
|
57
|
+
return os.path.relpath(path, start)
|
|
58
|
+
except ValueError:
|
|
59
|
+
# paths are on different drives
|
|
57
60
|
return path
|
|
58
61
|
return os.path.relpath(path, start)
|
|
59
62
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dvc-objects
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.3.1
|
|
4
4
|
Summary: dvc objects - filesystem and object-db level abstractions to use in dvc and dvc-data
|
|
5
5
|
Author-email: Treeverse <support@dvc.org>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
16
17
|
Classifier: Development Status :: 4 - Beta
|
|
17
18
|
Requires-Python: >=3.9
|
|
18
19
|
Description-Content-Type: text/x-rst
|
|
@@ -20,12 +21,12 @@ License-File: LICENSE
|
|
|
20
21
|
Requires-Dist: fsspec>=2024.2.0
|
|
21
22
|
Requires-Dist: funcy>=1.14; python_version < "3.12"
|
|
22
23
|
Provides-Extra: tests
|
|
23
|
-
Requires-Dist: pytest<
|
|
24
|
+
Requires-Dist: pytest<10,>=7; extra == "tests"
|
|
24
25
|
Requires-Dist: pytest-sugar; extra == "tests"
|
|
25
26
|
Requires-Dist: pytest-cov>=4.1.0; extra == "tests"
|
|
26
27
|
Requires-Dist: pytest-mock; extra == "tests"
|
|
27
28
|
Requires-Dist: pytest-benchmark; extra == "tests"
|
|
28
|
-
Requires-Dist: pytest-asyncio<2,>=0.
|
|
29
|
+
Requires-Dist: pytest-asyncio<2,>=0.24; extra == "tests"
|
|
29
30
|
Requires-Dist: reflink; extra == "tests"
|
|
30
31
|
Provides-Extra: dev
|
|
31
32
|
Requires-Dist: dvc-objects[tests]; extra == "dev"
|
|
@@ -24,6 +24,8 @@ src/dvc_objects.egg-info/PKG-INFO
|
|
|
24
24
|
src/dvc_objects.egg-info/SOURCES.txt
|
|
25
25
|
src/dvc_objects.egg-info/dependency_links.txt
|
|
26
26
|
src/dvc_objects.egg-info/requires.txt
|
|
27
|
+
src/dvc_objects.egg-info/scm_file_list.json
|
|
28
|
+
src/dvc_objects.egg-info/scm_version.json
|
|
27
29
|
src/dvc_objects.egg-info/top_level.txt
|
|
28
30
|
src/dvc_objects/fs/__init__.py
|
|
29
31
|
src/dvc_objects/fs/base.py
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
".cruft.json",
|
|
4
|
+
".gitattributes",
|
|
5
|
+
".github/dependabot.yml",
|
|
6
|
+
".github/workflows/release.yml",
|
|
7
|
+
".github/workflows/tests.yml",
|
|
8
|
+
".github/workflows/update-template.yaml",
|
|
9
|
+
".gitignore",
|
|
10
|
+
".pre-commit-config.yaml",
|
|
11
|
+
"CODE_OF_CONDUCT.rst",
|
|
12
|
+
"CONTRIBUTING.rst",
|
|
13
|
+
"LICENSE",
|
|
14
|
+
"README.rst",
|
|
15
|
+
"noxfile.py",
|
|
16
|
+
"pyproject.toml",
|
|
17
|
+
"src/dvc_objects/__init__.py",
|
|
18
|
+
"src/dvc_objects/compat.py",
|
|
19
|
+
"src/dvc_objects/db.py",
|
|
20
|
+
"src/dvc_objects/errors.py",
|
|
21
|
+
"src/dvc_objects/executors.py",
|
|
22
|
+
"src/dvc_objects/fs/__init__.py",
|
|
23
|
+
"src/dvc_objects/fs/base.py",
|
|
24
|
+
"src/dvc_objects/fs/callbacks.py",
|
|
25
|
+
"src/dvc_objects/fs/errors.py",
|
|
26
|
+
"src/dvc_objects/fs/generic.py",
|
|
27
|
+
"src/dvc_objects/fs/local.py",
|
|
28
|
+
"src/dvc_objects/fs/memory.py",
|
|
29
|
+
"src/dvc_objects/fs/scheme.py",
|
|
30
|
+
"src/dvc_objects/fs/system.py",
|
|
31
|
+
"src/dvc_objects/fs/utils.py",
|
|
32
|
+
"src/dvc_objects/obj.py",
|
|
33
|
+
"src/dvc_objects/py.typed",
|
|
34
|
+
"src/dvc_objects/transfer.py",
|
|
35
|
+
"tests/__init__.py",
|
|
36
|
+
"tests/benchmarks/__init__.py",
|
|
37
|
+
"tests/benchmarks/test_fs.py",
|
|
38
|
+
"tests/conftest.py",
|
|
39
|
+
"tests/fs/__init__.py",
|
|
40
|
+
"tests/fs/test_callbacks.py",
|
|
41
|
+
"tests/fs/test_generic.py",
|
|
42
|
+
"tests/fs/test_localfs.py",
|
|
43
|
+
"tests/fs/test_system.py",
|
|
44
|
+
"tests/fs/test_utils.py",
|
|
45
|
+
"tests/test_odb.py",
|
|
46
|
+
"tests/test_reflink.py",
|
|
47
|
+
"tests/test_transfer.py"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
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
|