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

[Roadmap] Plugin Improvements #5645

Open
8 of 11 tasks
SchrodingersGat opened this issue Oct 2, 2023 · 6 comments
Open
8 of 11 tasks

[Roadmap] Plugin Improvements #5645

SchrodingersGat opened this issue Oct 2, 2023 · 6 comments
Assignees
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem roadmap This is a roadmap feature with no immediate plans for implementation
Milestone

Comments

@SchrodingersGat
Copy link
Member

SchrodingersGat commented Oct 2, 2023

From issues identified in #5624

Plugin Features / Improvements

Plugin Tasks

Preview Give feedback
@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem api Relates to the API roadmap This is a roadmap feature with no immediate plans for implementation labels Oct 2, 2023
@SchrodingersGat SchrodingersGat added this to the horizon milestone Oct 2, 2023
@SchrodingersGat SchrodingersGat self-assigned this Oct 2, 2023
@matmair
Copy link
Member

matmair commented Oct 3, 2023

Not sure collection of more metadata is possible without running into serious security problems.

@SchrodingersGat
Copy link
Member Author

Not sure collection of more metadata is possible without running into serious security problems.

It may not be. I'd like to look into it but it doesn't look likely

@matmair
Copy link
Member

matmair commented Oct 3, 2023

Would be amazing if there were a way, I am just not aware of one.

@wolflu05
Copy link
Contributor

wolflu05 commented Oct 3, 2023

If there is no other way, the only thing I see is parsing the setup.py/plugin file without executing it, by converting it to an AST with pythons ast module.

@30350n
Copy link
Contributor

30350n commented Dec 16, 2023

If there is no other way, the only thing I see is parsing the setup.py/plugin file without executing it, by converting it to an AST with pythons ast module.

This is exactly how Blender does it for Python addons. Each addon has to contain a static bl_info section, like this for example, which can be parsed like that. The actual addon code will only be executed once you enable the addon.

@SchrodingersGat
Copy link
Member Author

@30350n thanks for the info! And very nice looking plugin too. Might have to use that myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem roadmap This is a roadmap feature with no immediate plans for implementation
Projects
None yet
Development

No branches or pull requests

4 participants