Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] manifest: add category property #57

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

ThomasBinsfeld
Copy link
Member

@ThomasBinsfeld ThomasBinsfeld commented Oct 30, 2023

Add the category property in manifest.

@@ -53,6 +53,7 @@ def from_addon_dir(
cls,
addon_dir: Path,
allow_not_installable: bool = False,
addons_categories: Optional[List[str]] = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this kind of filtering belongs here, because we can imagine an infinity of different such filters.
Let's keep that in manifestoo for now.

@@ -128,6 +128,10 @@ def license(self) -> Optional[str]:
def author(self) -> Optional[str]:
return self._get("author", _check_optional_str, default=None)

@property
def category(self) -> Optional[str]:
return self._get("category", _check_optional_str, default=None)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ThomasBinsfeld ThomasBinsfeld force-pushed the imp_manifestoo_core_addons_set_categories_tbi branch from 788575c to 27ad10f Compare October 30, 2023 15:30
@ThomasBinsfeld ThomasBinsfeld changed the title [IMP] manifestoo-core: filter on categories in add_from_addons_dir [IMP] manifest: add category property Oct 30, 2023
@ThomasBinsfeld
Copy link
Member Author

Done

@@ -136,3 +136,6 @@ dmypy.json

# Cython debug symbols
cython_debug/

# pycharm dev env
.idea/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip: add this to your ~/.gitconfig

[core]
	excludesfile = ~/.gitignore

Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll do a release soon.

@sbidoul sbidoul force-pushed the imp_manifestoo_core_addons_set_categories_tbi branch from 27ad10f to 8883e82 Compare October 30, 2023 17:02
@sbidoul sbidoul force-pushed the imp_manifestoo_core_addons_set_categories_tbi branch from 8883e82 to 21e8f79 Compare October 30, 2023 17:03
@sbidoul sbidoul merged commit 473db7b into main Oct 30, 2023
8 checks passed
@sbidoul sbidoul deleted the imp_manifestoo_core_addons_set_categories_tbi branch October 30, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants