Making entry point names of aiida-core
consistent with our own naming conventions
#5099
-
Hello everyone 👋 . As you know, we have an unwritten naming convention for entry points names in that they should be prefixed with a name specific to the plugin package, typically the name of the package. For example, the
The AiiDA plugin registry has some checks to verify these unwritten rules, but so far they cannot be really enforced. A big part of this is due to the fact that The only downside that I see to making this change is backwards compatibility. However, as shown by this PR, which already implements the changes, it is possible to do in a backwards compatible way. It also, as usual, provides full automated data migrations to make existing data fully consistent (the entry point strings are stored in the database in certain cases). The old entry point strings will still work when passed to the various factories, for example: ArrayData = DataFactory('array') will still work exactly the same, except it will emit a deprecation warning to change it to: ArrayData = DataFactory('core.array') As you can see, also adapting existing code to this change is easy as this is easily search-and-replaceable. The same goes for the command line. The entry point names will continue to work there with a deprecation warning, giving people an easy way to update their workflow. For example, verdi node rehash --entry-point int will still work and is equivalent to the modern: verdi node rehash --entry-point core.int Since we are getting close to the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This has now been closed in #5073 |
Beta Was this translation helpful? Give feedback.
This has now been closed in #5073