Skip to content

Commit 2e2cd45

Browse files
committed
add missing codemeta maintainer prooperty
1 parent b20e2fc commit 2e2cd45

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/somesy/codemeta/writer.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ def authors(self, authors: List[Union[Person, Entity]]) -> None:
8383
authors_dict = [self._from_person(a) for a in authors]
8484
self._set_property(self._get_key("authors"), authors_dict)
8585

86+
@property
87+
def maintainers(self):
88+
"""Return the maintainers of the codemeta.json file."""
89+
return self._get_property(self._get_key("maintainers"))
90+
91+
@maintainers.setter
92+
def maintainers(self, maintainers: List[Union[Person, Entity]]) -> None:
93+
"""Set the maintainers of the project."""
94+
maintainers_dict = [self._from_person(m) for m in maintainers]
95+
self._set_property(self._get_key("maintainers"), maintainers_dict)
96+
8697
@property
8798
def contributors(self):
8899
"""Return the contributors of the codemeta.json file."""

0 commit comments

Comments
 (0)