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

PluginVersionProvider: add support for entry point strings #5662

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Sep 25, 2022

Fixes #5661

The get_version_info method now also supports plugin being an entry point string. It should be a full entry point string including the entry point group. The method will attempt to load the plugin before continuing as usual determining the version of the corresponding package.

The `get_version_info` method now also supports `plugin` being an entry
point string. It should be a full entry point string including the entry
point group. The method will attempt to load the plugin before
continuing as usual determining the version of the corresponding
package.
@sphuber sphuber requested review from mbercx and unkcpz September 25, 2022 19:49
Copy link
Member

@unkcpz unkcpz left a comment

Choose a reason for hiding this comment

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

@sphuber thanks! Looks all good.

@@ -104,6 +104,7 @@ repos:
aiida/orm/utils/links.py|
aiida/plugins/entry_point.py|
aiida/plugins/factories.py|
aiida/plugins/utils.py|
Copy link
Member

Choose a reason for hiding this comment

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

I guess this can be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why? This list of files is to explicitly enable type-checking. Since I fixed the type hinting, I added the file to this list.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, sorry, I thought this is to exclude the file.

@sphuber sphuber merged commit e4ac252 into aiidateam:main Sep 27, 2022
@sphuber sphuber deleted the feature/5661/plugin-version-provider-entry-point-string branch September 27, 2022 08:03
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.

PluginVersionProvider: Add support for entry point strings to the get_version_info method
2 participants