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

Handle plugin dependency managment #25834

Open
pauldix opened this issue Jan 14, 2025 · 0 comments
Open

Handle plugin dependency managment #25834

pauldix opened this issue Jan 14, 2025 · 0 comments
Labels

Comments

@pauldix
Copy link
Member

pauldix commented Jan 14, 2025

Plugins should be able to use third-party dependencies. Ideally, when installing a plugin, the server will download the dependencies and make them available. We'll also want a way to tell the server to load dependencies in advance of specifying a plugin explicitly.

I anticipate that most plugins will be a single file script of less than a few hundred lines, so I think using in-file dependencies in a comment block at the top. We'll use the uv syntax with the dependencies in a comment block at the top:

# requires-dist: requests>=2.31.0
# requires-dist: pandas>=2.2.0

When the plugin is created in the server, or the test plugin API is called, it should check for dependencies and install them.

If possible, we'll want a virtual environment per plugin, but that doesn't have to exist on this first pass.

@pauldix pauldix added the v3 label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant