GitPython 3.1.60__tar.gz → 3.1.61__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.
- {gitpython-3.1.60 → gitpython-3.1.61/GitPython.egg-info}/PKG-INFO +1 -1
- {gitpython-3.1.60/GitPython.egg-info → gitpython-3.1.61}/PKG-INFO +1 -1
- gitpython-3.1.61/VERSION +1 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/source/changes.rst +12 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/__init__.py +1 -1
- {gitpython-3.1.60 → gitpython-3.1.61}/git/util.py +23 -3
- gitpython-3.1.60/VERSION +0 -1
- {gitpython-3.1.60 → gitpython-3.1.61}/AUTHORS +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/CHANGES +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/CONTRIBUTING.md +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/GitPython.egg-info/SOURCES.txt +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/GitPython.egg-info/dependency_links.txt +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/GitPython.egg-info/not-zip-safe +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/GitPython.egg-info/requires.txt +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/GitPython.egg-info/top_level.txt +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/LICENSE +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/MANIFEST.in +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/README.md +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/.gitignore +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/Makefile +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/requirements.txt +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/source/conf.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/source/index.rst +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/source/intro.rst +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/source/quickstart.rst +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/source/reference.rst +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/source/roadmap.rst +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/doc/source/tutorial.rst +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/cmd.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/compat.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/config.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/db.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/diff.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/exc.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/index/__init__.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/index/base.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/index/fun.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/index/typ.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/index/util.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/__init__.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/base.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/blob.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/commit.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/fun.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/submodule/__init__.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/submodule/base.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/submodule/root.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/submodule/util.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/tag.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/tree.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/objects/util.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/py.typed +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/refs/__init__.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/refs/head.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/refs/log.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/refs/reference.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/refs/remote.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/refs/symbolic.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/refs/tag.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/remote.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/repo/__init__.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/repo/base.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/repo/fun.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/git/types.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/pyproject.toml +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/requirements.txt +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/setup.cfg +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/setup.py +0 -0
- {gitpython-3.1.60 → gitpython-3.1.61}/test-requirements.txt +0 -0
gitpython-3.1.61/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.61
|
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
Changelog
|
|
3
3
|
=========
|
|
4
4
|
|
|
5
|
+
3.1.61
|
|
6
|
+
======
|
|
7
|
+
|
|
8
|
+
A fixup release to avoid accidental removal of public class regex on Actor.
|
|
9
|
+
It's now deprecated instead.
|
|
10
|
+
|
|
11
|
+
If you can, also try and provide feedback on the upcoming v4 branch
|
|
12
|
+
https://github.com/gitpython-developers/GitPython/pull/2177 - patches welcome.
|
|
13
|
+
|
|
14
|
+
See the following for all changes.
|
|
15
|
+
https://github.com/gitpython-developers/GitPython/releases/tag/3.1.61
|
|
16
|
+
|
|
5
17
|
3.1.60
|
|
6
18
|
======
|
|
7
19
|
|
|
@@ -80,6 +80,7 @@ from typing import (
|
|
|
80
80
|
Sequence,
|
|
81
81
|
Tuple,
|
|
82
82
|
TYPE_CHECKING,
|
|
83
|
+
Type,
|
|
83
84
|
TypeVar,
|
|
84
85
|
Union,
|
|
85
86
|
cast,
|
|
@@ -108,6 +109,7 @@ from git.types import (
|
|
|
108
109
|
|
|
109
110
|
T_IterableObj = TypeVar("T_IterableObj", bound=Union["IterableObj", "Has_id_attribute"], covariant=True)
|
|
110
111
|
# So IterableList[Head] is subtype of IterableList[IterableObj].
|
|
112
|
+
T_Actor = TypeVar("T_Actor", bound="Actor")
|
|
111
113
|
|
|
112
114
|
_logger = logging.getLogger(__name__)
|
|
113
115
|
|
|
@@ -853,11 +855,27 @@ class CallableRemoteProgress(RemoteProgress):
|
|
|
853
855
|
self._callable(*args, **kwargs)
|
|
854
856
|
|
|
855
857
|
|
|
858
|
+
class _DeprecatedActorNameEmailRegex:
|
|
859
|
+
_pattern = re.compile(r"(.*) <(.*?)>")
|
|
860
|
+
|
|
861
|
+
def __get__(self, _instance: Any, _owner: Any) -> Pattern[str]:
|
|
862
|
+
warnings.warn(
|
|
863
|
+
"Actor.name_email_regex is deprecated and will be removed in GitPython 4.0.0 because searching long "
|
|
864
|
+
"malformed strings with it can take quadratic time. Use Actor.from_string() to parse actor identities, "
|
|
865
|
+
"or Actor(name, email) when the fields are already separate.",
|
|
866
|
+
DeprecationWarning,
|
|
867
|
+
stacklevel=2,
|
|
868
|
+
)
|
|
869
|
+
return self._pattern
|
|
870
|
+
|
|
871
|
+
|
|
856
872
|
class Actor:
|
|
857
873
|
"""Actors hold information about a person acting on the repository. They can be
|
|
858
874
|
committers and authors or anything with a name and an email as mentioned in the git
|
|
859
875
|
log entries."""
|
|
860
876
|
|
|
877
|
+
name_email_regex = _DeprecatedActorNameEmailRegex()
|
|
878
|
+
|
|
861
879
|
# ENVIRONMENT VARIABLES
|
|
862
880
|
# These are read when creating new commits.
|
|
863
881
|
env_author_name = "GIT_AUTHOR_NAME"
|
|
@@ -891,7 +909,7 @@ class Actor:
|
|
|
891
909
|
return '<git.Actor "%s <%s>">' % (self.name, self.email)
|
|
892
910
|
|
|
893
911
|
@classmethod
|
|
894
|
-
def
|
|
912
|
+
def from_string(cls: Type[T_Actor], string: str) -> T_Actor:
|
|
895
913
|
"""Create an :class:`Actor` from a string.
|
|
896
914
|
|
|
897
915
|
:param string:
|
|
@@ -906,10 +924,12 @@ class Actor:
|
|
|
906
924
|
left_bracket = line.find("<")
|
|
907
925
|
right_bracket = line.find(">", left_bracket + 1)
|
|
908
926
|
if left_bracket >= 0 and right_bracket >= 0:
|
|
909
|
-
return
|
|
927
|
+
return cls(line[:left_bracket].rstrip(), line[left_bracket + 1 : right_bracket])
|
|
910
928
|
|
|
911
929
|
# Assume the best and use the whole string as name.
|
|
912
|
-
return
|
|
930
|
+
return cls(string, None)
|
|
931
|
+
|
|
932
|
+
_from_string = from_string
|
|
913
933
|
|
|
914
934
|
@classmethod
|
|
915
935
|
def _main_actor(
|
gitpython-3.1.60/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.1.60
|
|
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
|