deprecation_utils

Helper functions to give deprecation warnings.

Functions

Summary

check_qualnames_in_tests

Test that qualnames import path exists when running tests.

deprecate

Decorate a function, method or class to deprecate it.

deprecate_module_attribute

Import and return and anttribute from the new location.

deprecate_submodule

Create a module at runtime which retrieves attributes from new module.

glotaran_version

Version of the distribution.

module_attribute

Import and return the attribute (e.g.

parse_version

Parse version string to tuple of three ints for comparison.

warn_deprecated

Raise deprecation warning with change information.

Exceptions

Exception Summary

OverDueDeprecation

Error thrown when a deprecation should have been removed.