diff --git a/.gitignore b/.gitignore index a81c8ee..ee348aa 100644 --- a/.gitignore +++ b/.gitignore @@ -136,3 +136,6 @@ dmypy.json # Cython debug symbols cython_debug/ + +# pycharm dev env +.idea/ diff --git a/news/57.feature b/news/57.feature new file mode 100644 index 0000000..3d765cc --- /dev/null +++ b/news/57.feature @@ -0,0 +1 @@ +Add the ``category`` field to ``Manifest``. diff --git a/src/manifestoo_core/manifest.py b/src/manifestoo_core/manifest.py index 0a99520..6eb646b 100644 --- a/src/manifestoo_core/manifest.py +++ b/src/manifestoo_core/manifest.py @@ -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."""