diff --git a/src/copier_templates_extensions/__init__.py b/src/copier_templates_extensions/__init__.py new file mode 100644 index 0000000..5a86687 --- /dev/null +++ b/src/copier_templates_extensions/__init__.py @@ -0,0 +1,18 @@ +"""Deprecated. Import from `copier-template-extensions` instead.""" + +# YORE: Bump 1: Remove file. + +import warnings + +from copier_template_extensions import ContextHook, TemplateExtensionLoader + +__all__: list[str] = ["ContextHook", "TemplateExtensionLoader"] + +warnings.warn( + "`copier-templates-extensions` is renamed `copier-template-extensions`. " + "Please use the new name, and replace every occurrence of " + "`copier-templates-extensions` and `copier_templates_extensions` in your template with " + "`copier-template-extensions` and `copier_template_extensions` respectively.", + DeprecationWarning, + stacklevel=2, +)