added generation of commit user objects

pull/11/head
Langenfeld 2021-11-12 17:13:19 +01:00
rodzic 01e8fc148b
commit 614af661be
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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):

Wyświetl plik

@ -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,