Skip to content

Commit

Permalink
[IMP] manifest: add category property
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBinsfeld authored and sbidoul committed Oct 30, 2023
1 parent 37fe714 commit 21e8f79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/57.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the ``category`` field to ``Manifest``.
5 changes: 5 additions & 0 deletions src/manifestoo_core/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ def author(self) -> Optional[str]:
"""The value of the author field."""
return self._get("author", _check_optional_str, default=None)

@property
def category(self) -> Optional[str]:
"""The value of the category field."""
return self._get("category", _check_optional_str, default=None)

@property
def website(self) -> Optional[str]:
"""The value of the website field."""
Expand Down

0 comments on commit 21e8f79

Please sign in to comment.