scmrepo 3.3.3__tar.gz → 3.3.4__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.
Potentially problematic release.
This version of scmrepo might be problematic. Click here for more details.
- {scmrepo-3.3.3/src/scmrepo.egg-info → scmrepo-3.3.4}/PKG-INFO +1 -1
- {scmrepo-3.3.3 → scmrepo-3.3.4}/noxfile.py +1 -1
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/pygit2/__init__.py +14 -11
- {scmrepo-3.3.3 → scmrepo-3.3.4/src/scmrepo.egg-info}/PKG-INFO +1 -1
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.coveragerc +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.cruft.json +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.gitattributes +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.github/dependabot.yml +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.github/workflows/release.yaml +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.github/workflows/tests.yaml +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.github/workflows/update-template.yaml +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.gitignore +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/.pre-commit-config.yaml +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/CODE_OF_CONDUCT.rst +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/CONTRIBUTING.rst +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/LICENSE +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/README.rst +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/pyproject.toml +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/setup.cfg +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/__init__.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/asyn.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/base.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/exceptions.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/fs.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/__init__.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/__init__.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/base.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/dulwich/__init__.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/dulwich/asyncssh_vendor.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/dulwich/client.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/gitpython.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/pygit2/callbacks.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/backend/pygit2/filter.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/config.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/credentials.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/__init__.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/client.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/exceptions.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/fetch.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/object.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/pointer.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/progress.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/smudge.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/lfs/storage.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/objects.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/git/stash.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/noscm.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/progress.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/py.typed +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/urls.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo/utils.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo.egg-info/SOURCES.txt +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo.egg-info/dependency_links.txt +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo.egg-info/requires.txt +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/src/scmrepo.egg-info/top_level.txt +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/__init__.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/conftest.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/docker-compose.yml +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/git-init/git.sh +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_credentials.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_dulwich.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_fs.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_git.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_lfs.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_noscm.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_pygit2.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_scmrepo.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_stash.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/test_urls.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/user.key +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/user.key.pub +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/vendor/__init__.py +0 -0
- {scmrepo-3.3.3 → scmrepo-3.3.4}/tests/vendor/test_paramiko_vendor.py +0 -0
|
@@ -37,7 +37,7 @@ def safety(session: nox.Session) -> None:
|
|
|
37
37
|
"""Scan dependencies for insecure packages."""
|
|
38
38
|
session.install(".[dev]")
|
|
39
39
|
session.install("safety")
|
|
40
|
-
session.run("safety", "check", "--full-report")
|
|
40
|
+
session.run("safety", "check", "--full-report", "--ignore=67599")
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
@nox.session
|
|
@@ -72,7 +72,7 @@ class Pygit2Object(GitObject):
|
|
|
72
72
|
path = "/".join(key)
|
|
73
73
|
blob_kwargs = {
|
|
74
74
|
"as_path": path,
|
|
75
|
-
"commit_id": commit.
|
|
75
|
+
"commit_id": commit.id,
|
|
76
76
|
}
|
|
77
77
|
blobio = BlobIO(self.obj, **blob_kwargs)
|
|
78
78
|
if mode == "rb":
|
|
@@ -108,7 +108,7 @@ class Pygit2Object(GitObject):
|
|
|
108
108
|
|
|
109
109
|
@property
|
|
110
110
|
def sha(self) -> str:
|
|
111
|
-
return self.obj.
|
|
111
|
+
return str(self.obj.id)
|
|
112
112
|
|
|
113
113
|
def scandir(self) -> Iterable["Pygit2Object"]:
|
|
114
114
|
for entry in self.obj:
|
|
@@ -190,12 +190,13 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
190
190
|
return RefdbFsBackend(self.repo)
|
|
191
191
|
|
|
192
192
|
def _resolve_refish(self, refish: str):
|
|
193
|
-
from pygit2 import
|
|
193
|
+
from pygit2 import Tag
|
|
194
|
+
from pygit2.enums import ObjectType
|
|
194
195
|
|
|
195
196
|
commit, ref = self.repo.resolve_refish(refish)
|
|
196
197
|
if isinstance(commit, Tag):
|
|
197
198
|
ref = commit
|
|
198
|
-
commit = commit.peel(
|
|
199
|
+
commit = commit.peel(ObjectType.COMMIT)
|
|
199
200
|
return commit, ref
|
|
200
201
|
|
|
201
202
|
@property
|
|
@@ -395,7 +396,8 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
395
396
|
annotated: bool = False,
|
|
396
397
|
message: Optional[str] = None,
|
|
397
398
|
):
|
|
398
|
-
from pygit2 import
|
|
399
|
+
from pygit2 import GitError
|
|
400
|
+
from pygit2.enums import ObjectType
|
|
399
401
|
|
|
400
402
|
if annotated and not message:
|
|
401
403
|
raise SCMError("message is required for annotated tag")
|
|
@@ -404,7 +406,7 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
404
406
|
self.repo.create_tag(
|
|
405
407
|
tag,
|
|
406
408
|
target_obj.id,
|
|
407
|
-
|
|
409
|
+
ObjectType.COMMIT,
|
|
408
410
|
self.committer,
|
|
409
411
|
message or "",
|
|
410
412
|
)
|
|
@@ -526,7 +528,8 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
526
528
|
self.repo.create_reference_direct(name, new_ref, True, message=message)
|
|
527
529
|
|
|
528
530
|
def get_ref(self, name, follow: bool = True) -> Optional[str]:
|
|
529
|
-
from pygit2 import
|
|
531
|
+
from pygit2 import InvalidSpecError, Tag
|
|
532
|
+
from pygit2.enums import ObjectType, ReferenceType
|
|
530
533
|
|
|
531
534
|
try:
|
|
532
535
|
ref = self.repo.references.get(name)
|
|
@@ -534,12 +537,12 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
534
537
|
return None
|
|
535
538
|
if not ref:
|
|
536
539
|
return None
|
|
537
|
-
if follow and ref.type ==
|
|
540
|
+
if follow and ref.type == ReferenceType.SYMBOLIC:
|
|
538
541
|
ref = ref.resolve()
|
|
539
542
|
try:
|
|
540
543
|
obj = self.repo[ref.target]
|
|
541
544
|
if isinstance(obj, Tag):
|
|
542
|
-
return str(obj.peel(
|
|
545
|
+
return str(obj.peel(ObjectType.COMMIT).id)
|
|
543
546
|
except ValueError:
|
|
544
547
|
pass
|
|
545
548
|
|
|
@@ -841,7 +844,7 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
841
844
|
if os.name == "nt":
|
|
842
845
|
rel = rel.replace("\\", "/")
|
|
843
846
|
obj = tree[rel]
|
|
844
|
-
self.repo.index.add(IndexEntry(rel, obj.
|
|
847
|
+
self.repo.index.add(IndexEntry(rel, obj.id, obj.filemode))
|
|
845
848
|
self.repo.index.write()
|
|
846
849
|
elif hard:
|
|
847
850
|
self.repo.reset(self.repo.head.target, GIT_RESET_HARD)
|
|
@@ -1077,7 +1080,7 @@ class Pygit2Backend(BaseGitBackend): # pylint:disable=abstract-method
|
|
|
1077
1080
|
if isinstance(tag, Tag):
|
|
1078
1081
|
return GitTag(
|
|
1079
1082
|
tag.name,
|
|
1080
|
-
str(tag.
|
|
1083
|
+
str(tag.id),
|
|
1081
1084
|
str(tag.target),
|
|
1082
1085
|
tag.tagger.name,
|
|
1083
1086
|
tag.tagger.email,
|
|
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
|
|
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
|