Git Product home page Git Product logo

aiida-upgrade's Introduction

aiida-upgrade

PyPI

In Development!

A tool to aide upgrades of plugins to new aiida-core versions

Usage

To use the command line tool, it is recommended to install via pipx:

$ pipx install aiida-upgrade

Once installed, you can simply run aiida-upgrade on any PATH, which can be a single file or a directory:

$ aiida-upgrade --help
Usage: aiida-upgrade [OPTIONS] PATH

  The command line interface of aiida-upgrade.

Options:
  --help  Show this message and exit.

In case PATH is a directory, aiida-upgrade will recursively update all .py files inside that directory.

Supported migrations

Currently, aiida-upgrade performs the following code refactoring:

  • Look for deprecated aiida-core entry points loaded by plugin factories and add the core. prefix, see the corresponding section in the plugin migration guide.
  • Similarly, find and correct full deprecated entry point strings e.g. 'aiida.data:structure'.
  • Remove dict and list keywords from the Dict and List node constructors, respectively. See PR #5165 on aiida-core, which removed the requirement of using these keywords.

Migration steps that are not (yet) supported are:

If you find any problems with the current refactoring, or any migration steps that are missing, please let us know by opening an issue.

aiida-upgrade's People

Contributors

chrisjsewell avatar mbercx avatar pre-commit-ci[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mbercx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.