This too helps refactoring AiiDA plugins for
the transition from aiida-core
v0.x to aiida-core
v1.0.
It makes use of the Bowler refactoring tool.
The aiida-plugin-migrator
only runs under python3
(but it does not depend on aiida-core
).
git clone https://github.com/aiidateam/aiida-plugin-migrator
cd aiida-plugin-migrator
pip install -e .
# need latest bowler fixes
pip install git+https://github.com/facebookincubator/Bowler.git@master
This adds aiida-plugin-migrator.py
to the PATH
.
aiida-plugin-migrator.py /path/to/plugin/code
Backwards-incompatible changes have been documented in:
- the AiiDA wiki
- the documentation
- this comment (for
aiida.utils
)
As the plugin migrator is improved, please keep the Wiki updated.