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.
Files changed (54) hide show
  1. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.github/workflows/release.yml +3 -3
  2. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.github/workflows/tests.yml +2 -2
  3. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.github/workflows/update-template.yaml +1 -1
  4. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.pre-commit-config.yaml +1 -1
  5. {dvc_objects-5.2.0/src/dvc_objects.egg-info → dvc_objects-5.3.1}/PKG-INFO +4 -3
  6. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/pyproject.toml +4 -2
  7. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/base.py +1 -5
  8. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/utils.py +4 -1
  9. {dvc_objects-5.2.0 → dvc_objects-5.3.1/src/dvc_objects.egg-info}/PKG-INFO +4 -3
  10. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects.egg-info/SOURCES.txt +2 -0
  11. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects.egg-info/requires.txt +2 -2
  12. dvc_objects-5.3.1/src/dvc_objects.egg-info/scm_file_list.json +49 -0
  13. dvc_objects-5.3.1/src/dvc_objects.egg-info/scm_version.json +8 -0
  14. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.cruft.json +0 -0
  15. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.gitattributes +0 -0
  16. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.github/dependabot.yml +0 -0
  17. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/.gitignore +0 -0
  18. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/CODE_OF_CONDUCT.rst +0 -0
  19. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/CONTRIBUTING.rst +0 -0
  20. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/LICENSE +0 -0
  21. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/README.rst +0 -0
  22. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/noxfile.py +0 -0
  23. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/setup.cfg +0 -0
  24. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/__init__.py +0 -0
  25. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/compat.py +0 -0
  26. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/db.py +0 -0
  27. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/errors.py +0 -0
  28. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/executors.py +0 -0
  29. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/__init__.py +0 -0
  30. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/callbacks.py +0 -0
  31. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/errors.py +0 -0
  32. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/generic.py +0 -0
  33. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/local.py +0 -0
  34. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/memory.py +0 -0
  35. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/scheme.py +0 -0
  36. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/fs/system.py +0 -0
  37. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/obj.py +0 -0
  38. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/py.typed +0 -0
  39. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects/transfer.py +0 -0
  40. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects.egg-info/dependency_links.txt +0 -0
  41. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/src/dvc_objects.egg-info/top_level.txt +0 -0
  42. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/__init__.py +0 -0
  43. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/benchmarks/__init__.py +0 -0
  44. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/benchmarks/test_fs.py +0 -0
  45. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/conftest.py +0 -0
  46. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/__init__.py +0 -0
  47. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_callbacks.py +0 -0
  48. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_generic.py +0 -0
  49. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_localfs.py +0 -0
  50. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_system.py +0 -0
  51. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/fs/test_utils.py +0 -0
  52. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/test_odb.py +0 -0
  53. {dvc_objects-5.2.0 → dvc_objects-5.3.1}/tests/test_reflink.py +0 -0
  54. {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@v6
20
+ uses: actions/checkout@v7
21
21
  with:
22
22
  fetch-depth: 0
23
23
 
24
- - name: Set up Python 3.14
24
+ - name: Set up Python 3.15
25
25
  uses: actions/setup-python@v6
26
26
  with:
27
- python-version: '3.14'
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@v6
28
+ uses: actions/checkout@v7
29
29
  with:
30
30
  fetch-depth: 0
31
31
 
@@ -10,7 +10,7 @@ jobs:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
12
  - name: Check out the repository
13
- uses: actions/checkout@v6
13
+ uses: actions/checkout@v7
14
14
 
15
15
  - name: Update template
16
16
  uses: iterative/py-template@main
@@ -20,7 +20,7 @@ repos:
20
20
  - id: sort-simple-yaml
21
21
  - id: trailing-whitespace
22
22
  - repo: https://github.com/astral-sh/ruff-pre-commit
23
- rev: 'v0.14.9'
23
+ rev: 'v0.14.11'
24
24
  hooks:
25
25
  - id: ruff-check
26
26
  args: [--fix, --exit-non-zero-on-fix]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dvc-objects
3
- Version: 5.2.0
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<9,>=7; extra == "tests"
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.23.2; extra == "tests"
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,<9",
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.23.2,<2",
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, Sequence
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
- if not os.path.commonprefix([start, path]):
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.2.0
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<9,>=7; extra == "tests"
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.23.2; extra == "tests"
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
@@ -8,10 +8,10 @@ dvc-objects[tests]
8
8
  mypy==1.19.1
9
9
 
10
10
  [tests]
11
- pytest<9,>=7
11
+ pytest<10,>=7
12
12
  pytest-sugar
13
13
  pytest-cov>=4.1.0
14
14
  pytest-mock
15
15
  pytest-benchmark
16
- pytest-asyncio<2,>=0.23.2
16
+ pytest-asyncio<2,>=0.24
17
17
  reflink
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "5.3.1",
3
+ "distance": 0,
4
+ "node": "g3ffa731027360b2a2325e7acc02e823aeae529f7",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-11-06"
8
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes