Skip to content

Commit

Permalink
Merge pull request #57 from acsone/imp_manifestoo_core_addons_set_cat…
Browse files Browse the repository at this point in the history
…egories_tbi

[IMP] manifest: add category property
  • Loading branch information
sbidoul authored Oct 30, 2023
2 parents c00ca8d + 21e8f79 commit 473db7b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,6 @@ dmypy.json

# Cython debug symbols
cython_debug/

# pycharm dev env
.idea/
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 473db7b

Please sign in to comment.