Catalog PyPI
PACKAGE EXPLORERView in registry

aiida_upgrade

PyPI

A tool to perform upgrades of AiiDA plugins to new aiida-core versions.

Versions collected1
Direct dependencies3From release 0.1.0
Last observed21 Oct, 11:01 UTC

README

Version 0.1.0 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.014 Mar 20223

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
aiidateam/aiida-upgrade

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:01 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:bc57015f25ba6f09a33b7f43fe22d37bcab835d5ea0fd3eb880deecd93868756