From 21e8f791cd406830ae6acbb5cf58bb31ef726979 Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Mon, 30 Oct 2023 16:30:32 +0100 Subject: [PATCH] [IMP] manifest: add category property --- news/57.feature | 1 + src/manifestoo_core/manifest.py | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 news/57.feature 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."""