kopia lustrzana https://github.com/Langenfeld/py-gitea
added generation of commit user objects
rodzic
01e8fc148b
commit
614af661be
|
@ -543,8 +543,8 @@ class Commit(GiteaApiObject):
|
||||||
super(Commit, self).__init__(gitea)
|
super(Commit, self).__init__(gitea)
|
||||||
|
|
||||||
fields_to_parsers = {
|
fields_to_parsers = {
|
||||||
# NOTE: do not try to parse gitea-users from git-committers/authors, as
|
# NOTE: api may return None for commiters that are no gitea users
|
||||||
# they are not necessarily users of gitea as well
|
{"author": lambda gitea, u: User.parse_response(gitea, u) if u else None}
|
||||||
}
|
}
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ with open('README.md') as readme_file:
|
||||||
|
|
||||||
setup_args = dict(
|
setup_args = dict(
|
||||||
name='py-gitea',
|
name='py-gitea',
|
||||||
version='0.1.6',
|
version='0.1.7',
|
||||||
description='A python wrapper for the Gitea API',
|
description='A python wrapper for the Gitea API',
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
|
|
Ładowanie…
Reference in New Issue