scmrepo 3.3.5__py3-none-any.whl → 3.3.7__py3-none-any.whl
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.
Potentially problematic release.
This version of scmrepo might be problematic. Click here for more details.
- scmrepo/git/backend/dulwich/asyncssh_vendor.py +6 -6
- scmrepo/git/backend/dulwich/client.py +1 -1
- scmrepo/git/backend/gitpython.py +1 -1
- scmrepo/git/backend/pygit2/__init__.py +4 -4
- scmrepo/git/backend/pygit2/callbacks.py +1 -1
- scmrepo/git/credentials.py +12 -12
- scmrepo/git/lfs/fetch.py +2 -2
- {scmrepo-3.3.5.dist-info → scmrepo-3.3.7.dist-info}/METADATA +2 -2
- {scmrepo-3.3.5.dist-info → scmrepo-3.3.7.dist-info}/RECORD +12 -12
- {scmrepo-3.3.5.dist-info → scmrepo-3.3.7.dist-info}/WHEEL +1 -1
- {scmrepo-3.3.5.dist-info → scmrepo-3.3.7.dist-info}/LICENSE +0 -0
- {scmrepo-3.3.5.dist-info → scmrepo-3.3.7.dist-info}/top_level.txt +0 -0
|
@@ -66,8 +66,8 @@ class _StderrWrapper:
|
|
|
66
66
|
class AsyncSSHWrapper(BaseAsyncObject):
|
|
67
67
|
def __init__(self, conn: "SSHClientConnection", proc: "SSHClientProcess", **kwargs):
|
|
68
68
|
super().__init__(**kwargs)
|
|
69
|
-
self.conn:
|
|
70
|
-
self.proc:
|
|
69
|
+
self.conn: SSHClientConnection = conn
|
|
70
|
+
self.proc: SSHClientProcess = proc
|
|
71
71
|
self.stderr = _StderrWrapper(proc.stderr, self.loop)
|
|
72
72
|
|
|
73
73
|
def can_read(self) -> bool:
|
|
@@ -143,7 +143,7 @@ class InteractiveSSHClient(SSHClient):
|
|
|
143
143
|
|
|
144
144
|
def __init__(self, *args, **kwargs):
|
|
145
145
|
super(*args, **kwargs)
|
|
146
|
-
_passphrases: dict[str, str] = {}
|
|
146
|
+
self._passphrases: dict[str, str] = {}
|
|
147
147
|
|
|
148
148
|
def connection_made(self, conn: "SSHClientConnection") -> None:
|
|
149
149
|
self._conn = conn
|
|
@@ -152,7 +152,7 @@ class InteractiveSSHClient(SSHClient):
|
|
|
152
152
|
def connection_lost(self, exc: Optional[Exception]) -> None:
|
|
153
153
|
self._conn = None
|
|
154
154
|
|
|
155
|
-
async def public_key_auth_requested( # noqa: C901
|
|
155
|
+
async def public_key_auth_requested( # noqa: C901
|
|
156
156
|
self,
|
|
157
157
|
) -> Optional["KeyPairListArg"]:
|
|
158
158
|
from asyncssh.public_key import (
|
|
@@ -298,7 +298,7 @@ class AsyncSSHVendor(BaseAsyncObject, SSHVendor):
|
|
|
298
298
|
host,
|
|
299
299
|
port=port if port is not None else (),
|
|
300
300
|
username=username if username is not None else (),
|
|
301
|
-
password=password
|
|
301
|
+
password=password,
|
|
302
302
|
client_keys=[key_filename] if key_filename else (),
|
|
303
303
|
ignore_encrypted=not key_filename,
|
|
304
304
|
known_hosts=None,
|
|
@@ -320,7 +320,7 @@ def get_unsupported_opts(config_paths: "ConfigPaths") -> Iterator[str]:
|
|
|
320
320
|
|
|
321
321
|
if config_paths:
|
|
322
322
|
if isinstance(config_paths, (str, PurePath)):
|
|
323
|
-
paths: Sequence[
|
|
323
|
+
paths: Sequence[FilePath] = [config_paths]
|
|
324
324
|
else:
|
|
325
325
|
paths = config_paths
|
|
326
326
|
|
|
@@ -22,7 +22,7 @@ class GitCredentialsHTTPClient(Urllib3HttpGitClient): # pylint: disable=abstrac
|
|
|
22
22
|
config=config,
|
|
23
23
|
**kwargs,
|
|
24
24
|
)
|
|
25
|
-
self._store_credentials: Optional[
|
|
25
|
+
self._store_credentials: Optional[Credential] = None
|
|
26
26
|
|
|
27
27
|
def _http_request(
|
|
28
28
|
self,
|
scmrepo/git/backend/gitpython.py
CHANGED
|
@@ -468,7 +468,7 @@ class GitPythonBackend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
468
468
|
except GitCommandError as exc:
|
|
469
469
|
raise SCMError(f"Failed to set ref '{name}'") from exc
|
|
470
470
|
|
|
471
|
-
def get_ref(self, name: str, follow: bool = True) -> Optional[str]: # noqa: C901, PLR0911
|
|
471
|
+
def get_ref(self, name: str, follow: bool = True) -> Optional[str]: # noqa: C901, PLR0911
|
|
472
472
|
from git.exc import GitCommandError
|
|
473
473
|
|
|
474
474
|
if name == "HEAD":
|
|
@@ -698,7 +698,7 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
698
698
|
SCMError(f"Git failed to fetch ref from '{url}'"),
|
|
699
699
|
):
|
|
700
700
|
with RemoteCallbacks(progress=progress) as cb:
|
|
701
|
-
remote_refs: dict[str,
|
|
701
|
+
remote_refs: dict[str, Oid] = (
|
|
702
702
|
{
|
|
703
703
|
head["name"]: head["oid"]
|
|
704
704
|
for head in remote.ls_remotes(callbacks=cb)
|
|
@@ -712,7 +712,7 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
712
712
|
message="fetch",
|
|
713
713
|
)
|
|
714
714
|
|
|
715
|
-
result: dict[str,
|
|
715
|
+
result: dict[str, SyncStatus] = {}
|
|
716
716
|
for refspec in refspecs:
|
|
717
717
|
lh, rh = refspec.split(":")
|
|
718
718
|
if lh.endswith("*"):
|
|
@@ -951,7 +951,7 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
951
951
|
def iter_remote_refs(self, url: str, base: Optional[str] = None, **kwargs):
|
|
952
952
|
raise NotImplementedError
|
|
953
953
|
|
|
954
|
-
def merge( # noqa: C901
|
|
954
|
+
def merge( # noqa: C901
|
|
955
955
|
self,
|
|
956
956
|
rev: str,
|
|
957
957
|
commit: bool = True,
|
|
@@ -1089,7 +1089,7 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
1089
1089
|
from pygit2 import GitError
|
|
1090
1090
|
from pygit2.enums import AttrCheck
|
|
1091
1091
|
|
|
1092
|
-
commit: Optional[
|
|
1092
|
+
commit: Optional[Commit] = None
|
|
1093
1093
|
flags = AttrCheck.FILE_THEN_INDEX
|
|
1094
1094
|
if source:
|
|
1095
1095
|
try:
|
|
@@ -28,7 +28,7 @@ class RemoteCallbacks(_RemoteCallbacks, AbstractContextManager):
|
|
|
28
28
|
):
|
|
29
29
|
super().__init__(*args, **kwargs)
|
|
30
30
|
self.progress = GitProgressReporter(progress) if progress else None
|
|
31
|
-
self._store_credentials: Optional[
|
|
31
|
+
self._store_credentials: Optional[Credential] = None
|
|
32
32
|
self._tried_credentials = False
|
|
33
33
|
self.result: dict[str, SyncStatus] = {}
|
|
34
34
|
|
scmrepo/git/credentials.py
CHANGED
|
@@ -136,8 +136,8 @@ class GitCredentialHelper(CredentialHelper):
|
|
|
136
136
|
if not shutil.which(executable) and shutil.which("git"):
|
|
137
137
|
# If the helper cannot be found in PATH, it might be
|
|
138
138
|
# a C git helper in GIT_EXEC_PATH
|
|
139
|
-
git_exec_path = subprocess.check_output(
|
|
140
|
-
("git", "--exec-path"),
|
|
139
|
+
git_exec_path = subprocess.check_output( # noqa: S603
|
|
140
|
+
("git", "--exec-path"),
|
|
141
141
|
text=True,
|
|
142
142
|
).strip()
|
|
143
143
|
if shutil.which(executable, path=git_exec_path):
|
|
@@ -158,8 +158,8 @@ class GitCredentialHelper(CredentialHelper):
|
|
|
158
158
|
helper_input.append("")
|
|
159
159
|
|
|
160
160
|
try:
|
|
161
|
-
res = subprocess.run(
|
|
162
|
-
cmd,
|
|
161
|
+
res = subprocess.run( # noqa: S603
|
|
162
|
+
cmd,
|
|
163
163
|
check=True,
|
|
164
164
|
capture_output=True,
|
|
165
165
|
input="\n".join(helper_input),
|
|
@@ -199,8 +199,8 @@ class GitCredentialHelper(CredentialHelper):
|
|
|
199
199
|
helper_input.append("")
|
|
200
200
|
|
|
201
201
|
try:
|
|
202
|
-
res = subprocess.run(
|
|
203
|
-
cmd,
|
|
202
|
+
res = subprocess.run( # noqa: S603
|
|
203
|
+
cmd,
|
|
204
204
|
capture_output=True,
|
|
205
205
|
input="\n".join(helper_input),
|
|
206
206
|
encoding=self._encoding,
|
|
@@ -224,8 +224,8 @@ class GitCredentialHelper(CredentialHelper):
|
|
|
224
224
|
helper_input.append("")
|
|
225
225
|
|
|
226
226
|
try:
|
|
227
|
-
res = subprocess.run(
|
|
228
|
-
cmd,
|
|
227
|
+
res = subprocess.run( # noqa: S603
|
|
228
|
+
cmd,
|
|
229
229
|
capture_output=True,
|
|
230
230
|
input="\n".join(helper_input),
|
|
231
231
|
encoding=self._encoding,
|
|
@@ -243,7 +243,7 @@ class GitCredentialHelper(CredentialHelper):
|
|
|
243
243
|
) -> Iterator[tuple[str, bool]]:
|
|
244
244
|
config = config or StackedConfig.default()
|
|
245
245
|
if isinstance(config, StackedConfig):
|
|
246
|
-
backends: Iterable[
|
|
246
|
+
backends: Iterable[ConfigDict] = config.backends
|
|
247
247
|
else:
|
|
248
248
|
backends = [config]
|
|
249
249
|
|
|
@@ -324,7 +324,7 @@ class MemoryCredentialHelper(CredentialHelper):
|
|
|
324
324
|
|
|
325
325
|
def __init__(self):
|
|
326
326
|
super().__init__()
|
|
327
|
-
self._credentials: dict[
|
|
327
|
+
self._credentials: dict[_CredentialKey, Credential] = {}
|
|
328
328
|
|
|
329
329
|
def __getitem__(self, key: object) -> "Credential":
|
|
330
330
|
if isinstance(key, _CredentialKey):
|
|
@@ -448,8 +448,8 @@ class _AskpassCommand:
|
|
|
448
448
|
def input(self, prompt: str) -> str:
|
|
449
449
|
argv = [self.command, prompt]
|
|
450
450
|
try:
|
|
451
|
-
res = subprocess.run(
|
|
452
|
-
argv,
|
|
451
|
+
res = subprocess.run( # noqa: S603
|
|
452
|
+
argv,
|
|
453
453
|
check=True,
|
|
454
454
|
capture_output=True,
|
|
455
455
|
encoding=locale.getpreferredencoding(),
|
scmrepo/git/lfs/fetch.py
CHANGED
|
@@ -46,7 +46,7 @@ def fetch(
|
|
|
46
46
|
scm.lfs_storage.fetch(url, objects, progress=progress)
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
def get_fetch_url(scm: "Git", remote: Optional[str] = None): # noqa: C901
|
|
49
|
+
def get_fetch_url(scm: "Git", remote: Optional[str] = None): # noqa: C901
|
|
50
50
|
"""Return LFS fetch URL for the specified repository."""
|
|
51
51
|
git_config = scm.get_config()
|
|
52
52
|
|
|
@@ -56,7 +56,7 @@ def get_fetch_url(scm: "Git", remote: Optional[str] = None): # noqa: C901,PLR09
|
|
|
56
56
|
except KeyError:
|
|
57
57
|
pass
|
|
58
58
|
try:
|
|
59
|
-
lfs_config: Optional[
|
|
59
|
+
lfs_config: Optional[Config] = scm.get_config(
|
|
60
60
|
os.path.join(scm.root_dir, ".lfsconfig")
|
|
61
61
|
)
|
|
62
62
|
except FileNotFoundError:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scmrepo
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.7
|
|
4
4
|
Summary: scmrepo
|
|
5
5
|
Author-email: Iterative <support@dvc.org>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -26,7 +26,7 @@ Requires-Dist: funcy >=1.14
|
|
|
26
26
|
Requires-Dist: aiohttp-retry >=2.5.0
|
|
27
27
|
Requires-Dist: tqdm
|
|
28
28
|
Provides-Extra: dev
|
|
29
|
-
Requires-Dist: mypy ==1.10.
|
|
29
|
+
Requires-Dist: mypy ==1.10.1 ; extra == 'dev'
|
|
30
30
|
Requires-Dist: scmrepo[tests] ; extra == 'dev'
|
|
31
31
|
Requires-Dist: types-certifi ; extra == 'dev'
|
|
32
32
|
Requires-Dist: types-mock ; extra == 'dev'
|
|
@@ -10,29 +10,29 @@ scmrepo/urls.py,sha256=vEfW1h1lb7GXvMVBk-TNwqctpl-5xGMA2LbOPVn7t4Q,638
|
|
|
10
10
|
scmrepo/utils.py,sha256=_F3rVvPhES-A2JxLGob0RV8BOnHzxbA9aDPClA7_V8M,1512
|
|
11
11
|
scmrepo/git/__init__.py,sha256=6giWgQpgAlJslOkFmSAYkw8pb7nuefrbpZZf5Np3Iyo,17189
|
|
12
12
|
scmrepo/git/config.py,sha256=0t0OBmJ9SIa5tf22QdcGzhZfdMzzppvEmceUDg8ZPyE,943
|
|
13
|
-
scmrepo/git/credentials.py,sha256=
|
|
13
|
+
scmrepo/git/credentials.py,sha256=duj37Eb3k8SZ5dRIxj8XxB_oGCq2KzEjmeawQccXS_g,20938
|
|
14
14
|
scmrepo/git/objects.py,sha256=vqeFpUlMFHL9Yv1h3wTA7mbRWHCVC_4KgLy5aAISD2g,4674
|
|
15
15
|
scmrepo/git/stash.py,sha256=wKWnYj_xpdT_3pvHiXtE7_I_By4S-Zbxf4Lv-ZY2sxI,2785
|
|
16
16
|
scmrepo/git/backend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
scmrepo/git/backend/base.py,sha256=nVMkUIeSVu-ZLCd2QPxMfTgrjnTOejM1UET9R7qKJRc,13560
|
|
18
|
-
scmrepo/git/backend/gitpython.py,sha256=
|
|
18
|
+
scmrepo/git/backend/gitpython.py,sha256=k2MHg1sHZRFNzfQir3IlTpxrQHieflKwwHtnjzlPXZU,25341
|
|
19
19
|
scmrepo/git/backend/dulwich/__init__.py,sha256=WT6B8LKzQN4pgNrA82CFqwKkR1wWVBRHwwA9LwuSHV4,34740
|
|
20
|
-
scmrepo/git/backend/dulwich/asyncssh_vendor.py,sha256=
|
|
21
|
-
scmrepo/git/backend/dulwich/client.py,sha256=
|
|
22
|
-
scmrepo/git/backend/pygit2/__init__.py,sha256=
|
|
23
|
-
scmrepo/git/backend/pygit2/callbacks.py,sha256=
|
|
20
|
+
scmrepo/git/backend/dulwich/asyncssh_vendor.py,sha256=clqsPC9ayulwgb5VLp-69hEbN9XMPvjh_0diBlH4wv4,11520
|
|
21
|
+
scmrepo/git/backend/dulwich/client.py,sha256=XjNBfOp0L8M3iPpqcX_4bmXsO7hwrkyqg5wMbZULD-I,2358
|
|
22
|
+
scmrepo/git/backend/pygit2/__init__.py,sha256=5IDon4tdMhWhPlVqy_zMAyNDzz-X4FaS3jpqgj9lMfI,36341
|
|
23
|
+
scmrepo/git/backend/pygit2/callbacks.py,sha256=BFIFMzUpSC-CtNY50yTqksAusASgidzsQrG-B-Ry2lw,2749
|
|
24
24
|
scmrepo/git/backend/pygit2/filter.py,sha256=2NlWfQ7soXN1H7Es6-LctE74hpj3QKQTlYqXRH83VpM,2128
|
|
25
25
|
scmrepo/git/lfs/__init__.py,sha256=at5blRIKnKpg_g5dLRDsGWBFi6SbucRlF_DX6aAkGtE,257
|
|
26
26
|
scmrepo/git/lfs/client.py,sha256=SLlGFC09YD55nTDQ7MjuKD9alql-eOriyNePZikFaYo,10171
|
|
27
27
|
scmrepo/git/lfs/exceptions.py,sha256=cLlImmPXWJJUl44S4xcRBa2T9wYRkWTaKQGwJylwOhA,77
|
|
28
|
-
scmrepo/git/lfs/fetch.py,sha256=
|
|
28
|
+
scmrepo/git/lfs/fetch.py,sha256=45JGAKHAdANShZ9XEVXq0EYuKBgGmlMK2TX8z9Og8wg,5530
|
|
29
29
|
scmrepo/git/lfs/object.py,sha256=rAYY_z9EYoHPfbpF1QHwL7ecYgaETPyCl-zBx0E1oIQ,337
|
|
30
30
|
scmrepo/git/lfs/pointer.py,sha256=BcVbtjoOUG9cEzyJSJDeweqehGZvq43P6NNLDYUGYEI,3181
|
|
31
31
|
scmrepo/git/lfs/progress.py,sha256=ELlBs2SeXhAcnPDN23w3FTeBRgB9RGqBD2CFMS6n9Xs,4750
|
|
32
32
|
scmrepo/git/lfs/smudge.py,sha256=1O_fznptWo4CKXqcJgUoWP6cgWWhvGAZ3d87kasG3cQ,1610
|
|
33
33
|
scmrepo/git/lfs/storage.py,sha256=LbHGhSRdORu4Iqzb7Ef-2tA_iJbZykXZFotWRJvyr2Y,2380
|
|
34
|
-
scmrepo-3.3.
|
|
35
|
-
scmrepo-3.3.
|
|
36
|
-
scmrepo-3.3.
|
|
37
|
-
scmrepo-3.3.
|
|
38
|
-
scmrepo-3.3.
|
|
34
|
+
scmrepo-3.3.7.dist-info/LICENSE,sha256=-1jhbPjoIVHR0cEgahL4Zhct75Ff4MzYCR_jOaJDPq8,11340
|
|
35
|
+
scmrepo-3.3.7.dist-info/METADATA,sha256=gV-xba6DdwqWRR6I_ZcJS9k1i6FmPkqrT-hazauTiCg,4731
|
|
36
|
+
scmrepo-3.3.7.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
37
|
+
scmrepo-3.3.7.dist-info/top_level.txt,sha256=iunjod6w3GogERsAYfLRupnANXnqzX3jbIfbeIQG5cc,8
|
|
38
|
+
scmrepo-3.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|