configuration_migration

Full name: ase2sprkkr.configuration_migration

Description

Migration helpers for the deprecated executable-Python user configuration.

Functions

_collapse_blank_lines(lines)

_config_attribute(node)

_config_import_lines(tree)

_convert_legacy_execution_profile(config)

Move non-default deprecated execution settings to a normal profile.

_is_config_assignment(node)

_is_config_import(node)

_legacy_worker(source, schema, snapshot)

Child-only entry point; exchange pickles only inside the private tempdir.

_migrated_profile_name(profiles)

Return a free conventional name for migrated execution settings.

clean_legacy_configuration(file)

Remove migrated top-level config.* = ... statements from a script.

load_legacy_configuration(file, definition)

Execute a legacy hook in a fresh process and import its explicit values.

migrate_legacy_configuration(source, ...)

Convert a legacy Python config file to YAML and back up the source.