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
GlotaranDeprectedApiErrorerror, with formatted message.Raise deprecation warning with change information.
Exceptions
Exception Summary
GlotaranApiDeprecationWarningWarning to give users about API changes.
GlotaranDeprecatedApiErrorException raised when a deprecation has no replacement.
OverDueDeprecationError thrown when a deprecation should have been removed.