scmrepo 3.3.6__py3-none-any.whl → 3.3.8__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/__init__.py +9 -4
- scmrepo/git/backend/dulwich/asyncssh_vendor.py +1 -1
- scmrepo/git/backend/pygit2/__init__.py +2 -4
- scmrepo/git/lfs/progress.py +1 -1
- {scmrepo-3.3.6.dist-info → scmrepo-3.3.8.dist-info}/METADATA +3 -2
- {scmrepo-3.3.6.dist-info → scmrepo-3.3.8.dist-info}/RECORD +9 -9
- {scmrepo-3.3.6.dist-info → scmrepo-3.3.8.dist-info}/WHEEL +1 -1
- {scmrepo-3.3.6.dist-info → scmrepo-3.3.8.dist-info}/LICENSE +0 -0
- {scmrepo-3.3.6.dist-info → scmrepo-3.3.8.dist-info}/top_level.txt +0 -0
|
@@ -16,6 +16,7 @@ from typing import (
|
|
|
16
16
|
Union,
|
|
17
17
|
)
|
|
18
18
|
|
|
19
|
+
from dulwich.config import ConfigFile, StackedConfig
|
|
19
20
|
from funcy import cached_property, reraise
|
|
20
21
|
|
|
21
22
|
from scmrepo.exceptions import AuthError, CloneError, InvalidRemote, RevError, SCMError
|
|
@@ -27,7 +28,7 @@ from scmrepo.utils import relpath
|
|
|
27
28
|
|
|
28
29
|
if TYPE_CHECKING:
|
|
29
30
|
from dulwich.client import SSHVendor
|
|
30
|
-
from dulwich.config import ConfigFile
|
|
31
|
+
from dulwich.config import ConfigFile
|
|
31
32
|
from dulwich.repo import Repo
|
|
32
33
|
|
|
33
34
|
from scmrepo.git.objects import GitCommit
|
|
@@ -579,7 +580,8 @@ class DulwichBackend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
579
580
|
|
|
580
581
|
try:
|
|
581
582
|
_remote, location = get_remote_repo(self.repo, url)
|
|
582
|
-
|
|
583
|
+
_config = kwargs.pop("config", StackedConfig.default())
|
|
584
|
+
client, path = get_transport_and_path(location, config=_config, **kwargs)
|
|
583
585
|
except Exception as exc:
|
|
584
586
|
raise InvalidRemote(url) from exc
|
|
585
587
|
|
|
@@ -616,7 +618,8 @@ class DulwichBackend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
616
618
|
|
|
617
619
|
try:
|
|
618
620
|
_remote, location = get_remote_repo(self.repo, url)
|
|
619
|
-
|
|
621
|
+
_config = kwargs.pop("config", StackedConfig.default())
|
|
622
|
+
client, path = get_transport_and_path(location, config=_config, **kwargs)
|
|
620
623
|
except Exception as exc:
|
|
621
624
|
raise SCMError(f"'{url}' is not a valid Git remote or URL") from exc
|
|
622
625
|
|
|
@@ -723,7 +726,8 @@ class DulwichBackend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
723
726
|
|
|
724
727
|
with reraise(Exception, SCMError(f"'{url}' is not a valid Git remote or URL")):
|
|
725
728
|
_remote, location = get_remote_repo(self.repo, url)
|
|
726
|
-
|
|
729
|
+
_config = kwargs.pop("config", StackedConfig.default())
|
|
730
|
+
client, path = get_transport_and_path(location, config=_config, **kwargs)
|
|
727
731
|
|
|
728
732
|
with reraise(
|
|
729
733
|
(NotGitRepository, KeyError),
|
|
@@ -909,6 +913,7 @@ class DulwichBackend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
909
913
|
|
|
910
914
|
try:
|
|
911
915
|
_, location = get_remote_repo(self.repo, url)
|
|
916
|
+
_config = kwargs.pop("config", StackedConfig.default())
|
|
912
917
|
client, path = get_transport_and_path(location, **kwargs)
|
|
913
918
|
except Exception as exc:
|
|
914
919
|
raise InvalidRemote(url) from exc
|
|
@@ -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
|
|
@@ -701,15 +701,13 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
701
701
|
remote_refs: dict[str, Oid] = (
|
|
702
702
|
{
|
|
703
703
|
head["name"]: head["oid"]
|
|
704
|
-
for head in remote.ls_remotes(callbacks=cb)
|
|
704
|
+
for head in remote.ls_remotes(callbacks=cb, proxy=True)
|
|
705
705
|
}
|
|
706
706
|
if not force
|
|
707
707
|
else {}
|
|
708
708
|
)
|
|
709
709
|
remote.fetch(
|
|
710
|
-
refspecs=refspecs,
|
|
711
|
-
callbacks=cb,
|
|
712
|
-
message="fetch",
|
|
710
|
+
refspecs=refspecs, callbacks=cb, message="fetch", proxy=True
|
|
713
711
|
)
|
|
714
712
|
|
|
715
713
|
result: dict[str, SyncStatus] = {}
|
scmrepo/git/lfs/progress.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scmrepo
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.8
|
|
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.
|
|
29
|
+
Requires-Dist: mypy ==1.11.2 ; 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'
|
|
@@ -42,6 +42,7 @@ Requires-Dist: pytest-docker <4,>=1 ; extra == 'tests'
|
|
|
42
42
|
Requires-Dist: pytest-mock ; extra == 'tests'
|
|
43
43
|
Requires-Dist: pytest-sugar ; extra == 'tests'
|
|
44
44
|
Requires-Dist: pytest-test-utils <0.2,>=0.1.0 ; extra == 'tests'
|
|
45
|
+
Requires-Dist: proxy.py ; extra == 'tests'
|
|
45
46
|
|
|
46
47
|
scmrepo
|
|
47
48
|
=======
|
|
@@ -16,10 +16,10 @@ 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
18
|
scmrepo/git/backend/gitpython.py,sha256=k2MHg1sHZRFNzfQir3IlTpxrQHieflKwwHtnjzlPXZU,25341
|
|
19
|
-
scmrepo/git/backend/dulwich/__init__.py,sha256=
|
|
20
|
-
scmrepo/git/backend/dulwich/asyncssh_vendor.py,sha256=
|
|
19
|
+
scmrepo/git/backend/dulwich/__init__.py,sha256=7UJJyEPqgc2tfPs1WN_XdvRkMsGyFA1HVgTf7mrgLNE,35098
|
|
20
|
+
scmrepo/git/backend/dulwich/asyncssh_vendor.py,sha256=clqsPC9ayulwgb5VLp-69hEbN9XMPvjh_0diBlH4wv4,11520
|
|
21
21
|
scmrepo/git/backend/dulwich/client.py,sha256=XjNBfOp0L8M3iPpqcX_4bmXsO7hwrkyqg5wMbZULD-I,2358
|
|
22
|
-
scmrepo/git/backend/pygit2/__init__.py,sha256=
|
|
22
|
+
scmrepo/git/backend/pygit2/__init__.py,sha256=Is9OjsiDdUTRBUYrG1qoK5AP6Cjcy2tAk71nsmkzLf4,36316
|
|
23
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
|
|
@@ -28,11 +28,11 @@ scmrepo/git/lfs/exceptions.py,sha256=cLlImmPXWJJUl44S4xcRBa2T9wYRkWTaKQGwJylwOhA
|
|
|
28
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
|
-
scmrepo/git/lfs/progress.py,sha256=
|
|
31
|
+
scmrepo/git/lfs/progress.py,sha256=AcWvygDG0ee__Jec5BlRr58F-lAj3d4Z_j7JbW3OUcI,4733
|
|
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.8.dist-info/LICENSE,sha256=-1jhbPjoIVHR0cEgahL4Zhct75Ff4MzYCR_jOaJDPq8,11340
|
|
35
|
+
scmrepo-3.3.8.dist-info/METADATA,sha256=q9rUtEjpdlfz_PXHIk8CIPmy-xtWOQTwa7wHJ7AG1ZY,4774
|
|
36
|
+
scmrepo-3.3.8.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
37
|
+
scmrepo-3.3.8.dist-info/top_level.txt,sha256=iunjod6w3GogERsAYfLRupnANXnqzX3jbIfbeIQG5cc,8
|
|
38
|
+
scmrepo-3.3.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|