Skip to content

Remove dynamic plugin support#113

Merged
mgorny merged 11 commits into
devfrom
remove-dynamic
Sep 5, 2025
Merged

Remove dynamic plugin support#113
mgorny merged 11 commits into
devfrom
remove-dynamic

Conversation

@mgorny
Copy link
Copy Markdown
Collaborator

@mgorny mgorny commented Sep 4, 2025

Remove the bits used for dynamic plugin support, and restrict values to disallow version operators.

This is the "non-breaking" part of the change: it blocks dynamic plugins, but static plugin API remain unchanged for now.

Block dynamic plugins, remove relevant tests.  No API changes yet.

Signed-off-by: Michał Górny <mgorny@quansight.com>
Signed-off-by: Michał Górny <mgorny@quansight.com>
Now that we don't allow dynamic plugins anymore, there is no reason
to allow full version specifier syntax.  We still allow `.` for versions
themselves, though.

Signed-off-by: Michał Górny <mgorny@quansight.com>
Signed-off-by: Michał Górny <mgorny@quansight.com>
Signed-off-by: Michał Górny <mgorny@quansight.com>
We've broken the API anyway.

Signed-off-by: Michał Górny <mgorny@quansight.com>
@mgorny mgorny changed the title Remove dynamic plugin support ("non-breaking" part) Remove dynamic plugin support Sep 4, 2025
@mgorny
Copy link
Copy Markdown
Collaborator Author

mgorny commented Sep 4, 2025

Okay, all done. The API is back to where it was at the beginning.

I still need to update CLI commands but let's do that separately. Now I need working plugins again.

@DEKHTIARJonathan
Copy link
Copy Markdown
Member

Sorry got busy - will review tomorrow

Signed-off-by: Michał Górny <mgorny@quansight.com>
There is only one command remaining, so no point in splitting it.

Signed-off-by: Michał Górny <mgorny@quansight.com>
Signed-off-by: Michał Górny <mgorny@quansight.com>
Signed-off-by: Michał Górny <mgorny@quansight.com>
Copy link
Copy Markdown
Member

@DEKHTIARJonathan DEKHTIARJonathan left a comment

Choose a reason for hiding this comment

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

499 lines removed
295 added !

That's what's up !

Two tiny remarks - feel free to adjust or drop. You can merge

Comment thread tests/artifacts/test-plugin-package/test_plugin_package.py Outdated
Comment thread tests/mocked_plugin_as_module.py Outdated
Comment thread variantlib/constants.py
Signed-off-by: Michał Górny <mgorny@quansight.com>
@mgorny mgorny merged commit 0dd7795 into dev Sep 5, 2025
38 checks passed
@mgorny mgorny deleted the remove-dynamic branch September 5, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants