Formalize the definition and import location of plugin factories #2498
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2176
Even though each factory is designed to load a specific sub class of the base classes for the various entry point groups and therefore it could be argued that they should be defined in the corresponding module, these "functions" are not actual factories as such and are really syntactic sugar to load a plugin class through an entry point . As such, it was decided to define all plugin factories in
aiida.plugins.factories
and expose them to be imported fromaiida.plugins
.In this PR I also took the liberty to rename some modules for consistency and to simplify development.
Short overview of the changes:
test_
prefixaiida.orm.implementation.authinfo
toaiida.orm.implementation.authinfos
aiida.orm.implementation.computer
toaiida.orm.implementation.computers
aiida.scheduler
toaiida.schedulers
aiida.transport
toaiida.transports