scmrepo 3.3.9__tar.gz → 3.3.10__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 (73) hide show
  1. {scmrepo-3.3.9 → scmrepo-3.3.10}/.github/workflows/tests.yaml +1 -1
  2. {scmrepo-3.3.9 → scmrepo-3.3.10}/.pre-commit-config.yaml +2 -2
  3. {scmrepo-3.3.9/src/scmrepo.egg-info → scmrepo-3.3.10}/PKG-INFO +3 -3
  4. {scmrepo-3.3.9 → scmrepo-3.3.10}/pyproject.toml +1 -1
  5. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/fs.py +0 -31
  6. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/__init__.py +2 -2
  7. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/gitpython.py +1 -1
  8. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/pygit2/__init__.py +1 -1
  9. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/credentials.py +1 -1
  10. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/fetch.py +1 -1
  11. {scmrepo-3.3.9 → scmrepo-3.3.10/src/scmrepo.egg-info}/PKG-INFO +3 -3
  12. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo.egg-info/requires.txt +1 -1
  13. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_lfs.py +1 -1
  14. {scmrepo-3.3.9 → scmrepo-3.3.10}/.coveragerc +0 -0
  15. {scmrepo-3.3.9 → scmrepo-3.3.10}/.cruft.json +0 -0
  16. {scmrepo-3.3.9 → scmrepo-3.3.10}/.gitattributes +0 -0
  17. {scmrepo-3.3.9 → scmrepo-3.3.10}/.github/dependabot.yml +0 -0
  18. {scmrepo-3.3.9 → scmrepo-3.3.10}/.github/workflows/release.yaml +0 -0
  19. {scmrepo-3.3.9 → scmrepo-3.3.10}/.github/workflows/update-template.yaml +0 -0
  20. {scmrepo-3.3.9 → scmrepo-3.3.10}/.gitignore +0 -0
  21. {scmrepo-3.3.9 → scmrepo-3.3.10}/CODE_OF_CONDUCT.rst +0 -0
  22. {scmrepo-3.3.9 → scmrepo-3.3.10}/CONTRIBUTING.rst +0 -0
  23. {scmrepo-3.3.9 → scmrepo-3.3.10}/LICENSE +0 -0
  24. {scmrepo-3.3.9 → scmrepo-3.3.10}/README.rst +0 -0
  25. {scmrepo-3.3.9 → scmrepo-3.3.10}/noxfile.py +0 -0
  26. {scmrepo-3.3.9 → scmrepo-3.3.10}/setup.cfg +0 -0
  27. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/__init__.py +0 -0
  28. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/asyn.py +0 -0
  29. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/base.py +0 -0
  30. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/exceptions.py +0 -0
  31. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/__init__.py +0 -0
  32. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/base.py +0 -0
  33. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/dulwich/__init__.py +0 -0
  34. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/dulwich/asyncssh_vendor.py +0 -0
  35. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/dulwich/client.py +0 -0
  36. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/pygit2/callbacks.py +0 -0
  37. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/backend/pygit2/filter.py +0 -0
  38. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/config.py +0 -0
  39. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/__init__.py +0 -0
  40. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/client.py +0 -0
  41. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/exceptions.py +0 -0
  42. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/object.py +0 -0
  43. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/pointer.py +0 -0
  44. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/progress.py +0 -0
  45. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/smudge.py +0 -0
  46. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/lfs/storage.py +0 -0
  47. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/objects.py +0 -0
  48. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/git/stash.py +0 -0
  49. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/noscm.py +0 -0
  50. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/progress.py +0 -0
  51. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/py.typed +0 -0
  52. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/urls.py +0 -0
  53. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo/utils.py +0 -0
  54. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo.egg-info/SOURCES.txt +0 -0
  55. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo.egg-info/dependency_links.txt +0 -0
  56. {scmrepo-3.3.9 → scmrepo-3.3.10}/src/scmrepo.egg-info/top_level.txt +0 -0
  57. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/__init__.py +0 -0
  58. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/conftest.py +0 -0
  59. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/docker-compose.yml +0 -0
  60. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/git-init/git.sh +0 -0
  61. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_credentials.py +0 -0
  62. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_dulwich.py +0 -0
  63. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_fs.py +0 -0
  64. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_git.py +0 -0
  65. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_noscm.py +0 -0
  66. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_pygit2.py +0 -0
  67. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_scmrepo.py +0 -0
  68. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_stash.py +0 -0
  69. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/test_urls.py +0 -0
  70. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/user.key +0 -0
  71. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/user.key.pub +0 -0
  72. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/vendor/__init__.py +0 -0
  73. {scmrepo-3.3.9 → scmrepo-3.3.10}/tests/vendor/test_paramiko_vendor.py +0 -0
@@ -47,7 +47,7 @@ jobs:
47
47
  run: nox -s tests-${{ matrix.pyv }} -- --slow --cov-report=xml
48
48
 
49
49
  - name: Upload coverage report
50
- uses: codecov/codecov-action@v3.1.0
50
+ uses: codecov/codecov-action@v5.3.1
51
51
 
52
52
  - name: Build package
53
53
  run: nox -s build
@@ -20,13 +20,13 @@ 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.7.4'
23
+ rev: 'v0.9.3'
24
24
  hooks:
25
25
  - id: ruff
26
26
  args: [--fix, --exit-non-zero-on-fix]
27
27
  - id: ruff-format
28
28
  - repo: https://github.com/codespell-project/codespell
29
- rev: v2.3.0
29
+ rev: v2.4.0
30
30
  hooks:
31
31
  - id: codespell
32
32
  additional_dependencies: ["tomli"]
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: scmrepo
3
- Version: 3.3.9
3
+ Version: 3.3.10
4
4
  Summary: scmrepo
5
5
  Author-email: Iterative <support@dvc.org>
6
6
  License: Apache-2.0
@@ -38,7 +38,7 @@ Requires-Dist: pytest-sugar; extra == "tests"
38
38
  Requires-Dist: pytest-test-utils<0.2,>=0.1.0; extra == "tests"
39
39
  Requires-Dist: proxy.py; extra == "tests"
40
40
  Provides-Extra: dev
41
- Requires-Dist: mypy==1.13.0; extra == "dev"
41
+ Requires-Dist: mypy==1.14.1; extra == "dev"
42
42
  Requires-Dist: scmrepo[tests]; extra == "dev"
43
43
  Requires-Dist: types-certifi; extra == "dev"
44
44
  Requires-Dist: types-mock; extra == "dev"
@@ -52,7 +52,7 @@ tests = [
52
52
  "proxy.py",
53
53
  ]
54
54
  dev = [
55
- "mypy==1.13.0",
55
+ "mypy==1.14.1",
56
56
  "scmrepo[tests]",
57
57
  "types-certifi",
58
58
  "types-mock",
@@ -3,9 +3,7 @@ import os
3
3
  import posixpath
4
4
  from typing import TYPE_CHECKING, Any, BinaryIO, Callable, Optional
5
5
 
6
- from fsspec.callbacks import _DEFAULT_CALLBACK
7
6
  from fsspec.spec import AbstractFileSystem
8
- from fsspec.utils import isfilelike
9
7
 
10
8
  if TYPE_CHECKING:
11
9
  from io import BytesIO
@@ -242,32 +240,3 @@ class GitFileSystem(AbstractFileSystem):
242
240
  return paths
243
241
 
244
242
  return [self.info(_path) for _path in paths]
245
-
246
- def get_file(
247
- self, rpath, lpath, callback=_DEFAULT_CALLBACK, outfile=None, **kwargs
248
- ):
249
- # NOTE: temporary workaround while waiting for
250
- # https://github.com/fsspec/filesystem_spec/pull/1191
251
-
252
- if isfilelike(lpath):
253
- outfile = lpath
254
- elif self.isdir(rpath):
255
- os.makedirs(lpath, exist_ok=True)
256
- return None
257
-
258
- with self.open(rpath, "rb", **kwargs) as f1:
259
- if outfile is None:
260
- outfile = open(lpath, "wb") # noqa: SIM115
261
-
262
- try:
263
- callback.set_size(getattr(f1, "size", None))
264
- data = True
265
- while data:
266
- data = f1.read(self.blocksize)
267
- segment_len = outfile.write(data)
268
- if segment_len is None:
269
- segment_len = len(data)
270
- callback.relative_update(segment_len)
271
- finally:
272
- if not isfilelike(lpath):
273
- outfile.close()
@@ -258,7 +258,7 @@ class Git(Base):
258
258
  self.hooks_dir.mkdir(exist_ok=True)
259
259
  hook = self.hooks_dir / name
260
260
 
261
- directive = f"#!{shutil.which(interpreter) or '/bin/sh' }"
261
+ directive = f"#!{shutil.which(interpreter) or '/bin/sh'}"
262
262
  hook.write_text(f"{directive}\n{script}\n", encoding="utf-8")
263
263
  hook.chmod(0o777)
264
264
 
@@ -287,7 +287,7 @@ class Git(Base):
287
287
  def no_commits(self):
288
288
  return not bool(self.get_ref("HEAD"))
289
289
 
290
- # Prefer re-using the most recently used backend when possible. When
290
+ # Prefer reusing the most recently used backend when possible. When
291
291
  # changing backends (due to unimplemented calls), we close the previous
292
292
  # backend to release any open git files/contexts that may cause conflicts
293
293
  # with the new backend.
@@ -184,7 +184,7 @@ class GitPythonBackend(BaseGitBackend): # pylint:disable=abstract-method
184
184
  # In fix_env, we delete LD_LIBRARY_PATH key if it was empty before
185
185
  # PyInstaller modified it. GitPython, in git.Repo.clone_from, uses
186
186
  # env to update its own internal state. When there is no key in
187
- # env, this value is not updated and GitPython re-uses
187
+ # env, this value is not updated and GitPython reuses
188
188
  # LD_LIBRARY_PATH that has been set by PyInstaller.
189
189
  # See [1] for more info.
190
190
  # [1] https://github.com/gitpython-developers/GitPython/issues/924
@@ -720,7 +720,7 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
720
720
  for refname in remote_refs:
721
721
  if fnmatch.fnmatch(refname, lh):
722
722
  src = refname
723
- dst = f"{rh_prefix}{refname[len(lh_prefix):]}"
723
+ dst = f"{rh_prefix}{refname[len(lh_prefix) :]}"
724
724
  result[dst] = cb.result.get(
725
725
  src, _default_status(src, dst, remote_refs)
726
726
  )
@@ -324,7 +324,7 @@ def _input_tty(prompt: str = "Username: ") -> str:
324
324
  try:
325
325
  fd = os.open(
326
326
  "/dev/tty",
327
- os.O_RDWR | os.O_NOCTTY, # pylint: disable=no-member
327
+ os.O_RDWR | os.O_NOCTTY, # type: ignore[attr-defined]
328
328
  )
329
329
  tty = io.FileIO(fd, "w+")
330
330
  stack.enter_context(tty)
@@ -122,7 +122,7 @@ def _collect_objects(
122
122
  and (result := _ROOT_PATH_PREFIX_REGEX.match(path := include[0]))
123
123
  ):
124
124
  root = result.group("prefix")
125
- if path in {root, f'{root.rstrip("/")}/**'}:
125
+ if path in {root, f"{root.rstrip('/')}/**"}:
126
126
  include = []
127
127
  else:
128
128
  root = "/"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: scmrepo
3
- Version: 3.3.9
3
+ Version: 3.3.10
4
4
  Summary: scmrepo
5
5
  Author-email: Iterative <support@dvc.org>
6
6
  License: Apache-2.0
@@ -38,7 +38,7 @@ Requires-Dist: pytest-sugar; extra == "tests"
38
38
  Requires-Dist: pytest-test-utils<0.2,>=0.1.0; extra == "tests"
39
39
  Requires-Dist: proxy.py; extra == "tests"
40
40
  Provides-Extra: dev
41
- Requires-Dist: mypy==1.13.0; extra == "dev"
41
+ Requires-Dist: mypy==1.14.1; extra == "dev"
42
42
  Requires-Dist: scmrepo[tests]; extra == "dev"
43
43
  Requires-Dist: types-certifi; extra == "dev"
44
44
  Requires-Dist: types-mock; extra == "dev"
@@ -10,7 +10,7 @@ aiohttp-retry>=2.5.0
10
10
  tqdm
11
11
 
12
12
  [dev]
13
- mypy==1.13.0
13
+ mypy==1.14.1
14
14
  scmrepo[tests]
15
15
  types-certifi
16
16
  types-mock
@@ -32,7 +32,7 @@ def storage(tmp_dir_factory: TempDirFactory) -> LFSStorage:
32
32
 
33
33
 
34
34
  @pytest.fixture
35
- def lfs(tmp_dir: TmpDir, scm: Git) -> None: # noqa: PT004
35
+ def lfs(tmp_dir: TmpDir, scm: Git) -> None:
36
36
  tmp_dir.gen(".gitattributes", "*.lfs filter=lfs diff=lfs merge=lfs -text")
37
37
  scm.add([".gitattributes"])
38
38
  scm.commit("init lfs attributes")
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