From efe2c9828ebe0e989560f0bdd9b22901d3521f1f Mon Sep 17 00:00:00 2001 From: David Mathias Mortensen Date: Tue, 26 Mar 2024 11:35:28 +0100 Subject: [PATCH] feat: Update DecoratorsProcessor classname and version --- pyproject.toml | 2 +- src/reqstool_python_hatch_plugin/build_hook/hook.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eb12191..d5321cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ classifiers = [ requires-python = ">=3.10" dependencies = [ - "reqstool-python-decorators == 0.0.1", + "reqstool-python-decorators == 0.0.2", "ruamel.yaml==0.18.6", "hatchling>=1.20.0", ] diff --git a/src/reqstool_python_hatch_plugin/build_hook/hook.py b/src/reqstool_python_hatch_plugin/build_hook/hook.py index 56405ed..bdfa703 100644 --- a/src/reqstool_python_hatch_plugin/build_hook/hook.py +++ b/src/reqstool_python_hatch_plugin/build_hook/hook.py @@ -2,7 +2,7 @@ from hatchling.builders.hooks.plugin.interface import BuildHookInterface -from reqstool_python_decorators.processors.decorator_processor import ProcessDecorator +from reqstool_python_decorators.processors.decorator_processor import DecoratorProcessor class Decorator(BuildHookInterface): @@ -56,5 +56,5 @@ def initialize(self, version, build_data): """ path = self.get_config_path - process_decorator = ProcessDecorator() - process_decorator.process_decorated_data(path_to_python_files=path) + decorator_processor = DecoratorProcessor() + decorator_processor.process_decorated_data(path_to_python_files=path)