deprecation_utils
Helper functions to give deprecation warnings.
Functions
Summary
Check if a deprecation is overdue for removal.
Test that qualnames import path exists when running tests.
Decorate a function, method or class to deprecate it.
Replace dict entry inplace and warn about usage change, if present in the dict.
Import and return and anttribute from the new location.
Create a module at runtime which retrieves attributes from new module.
Version of the distribution.
Import and return the attribute (e.g. function or class) of a module.
Parse version string to tuple of three ints for comparison.
Raise
GlotaranDeprectedApiError
error, with formatted message.Raise deprecation warning with change information.
Exceptions
Exception Summary
GlotaranApiDeprecationWarning
Warning to give users about API changes.
GlotaranDeprecatedApiError
Exception raised when a deprecation has no replacement.
OverDueDeprecation
Error thrown when a deprecation should have been removed.