Skip to main content

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.

Release files for aiida_upgrade 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiida_upgrade 0.1.0
File Size Uploaded
aiida_upgrade-0.1.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiida_upgrade 0.1.0
File Interpreter ABI Platform
aiida_upgrade-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.3 kB

Release files / aiida_upgrade-0.1.0.tar.gz

Download URL aiida_upgrade-0.1.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2924802a4ca8fa8d3c04e5bae544fd27acf8fa9105f0327f4474ef046b84cb0c
BLAKE2b-256 checksum
How to use checksums
7194aeef17fb1e9561fcabcdb7d98128a066bc9498c8e6fd9933263b72862f49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release files / aiida_upgrade-0.1.0-py2.py3-none-any.whl

Download URL aiida_upgrade-0.1.0-py2.py3-none-any.whl
Size 6.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
50ee01acab714c7786f36d56f3a6c27c1591dcb3dce61dbe2e95f2f7f4c98470
BLAKE2b-256 checksum
How to use checksums
63bc6cc6e975a10f394f74e8474b4417813ad9beb8b5909e07445e1857f81b3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page