diff --git a/kdb-bot/src/modules/short_role_name/short-role-name.json b/kdb-bot/src/modules/short_role_name/short-role-name.json index 3cc5cce9..cac3f949 100644 --- a/kdb-bot/src/modules/short_role_name/short-role-name.json +++ b/kdb-bot/src/modules/short_role_name/short-role-name.json @@ -22,9 +22,7 @@ "cpl-cli>=2023.4.0.post3" ], "PythonVersion": ">=3.10.4", - "PythonPath": { - "linux": "" - }, + "PythonPath": {}, "Classifiers": [] }, "BuildSettings": { diff --git a/kdb-bot/tools/post_build/application.py b/kdb-bot/tools/post_build/application.py index e3db8dad..7477fa5a 100644 --- a/kdb-bot/tools/post_build/application.py +++ b/kdb-bot/tools/post_build/application.py @@ -20,4 +20,5 @@ class Application(ApplicationABC): def main(self): Console.write_line("KDB Post-Build:") Console.spinner(f"Removing unnecessary configs", self._remove_config.remove) - Console.spinner(f"Creating requirements file for pip", self._deps.create) + # Console.spinner(f"Creating requirements file for pip", self._deps.create) + self._deps.create() diff --git a/kdb-bot/tools/post_build/post_build_settings.py b/kdb-bot/tools/post_build/post_build_settings.py index 3c8a789e..a0cea84c 100644 --- a/kdb-bot/tools/post_build/post_build_settings.py +++ b/kdb-bot/tools/post_build/post_build_settings.py @@ -1,15 +1,12 @@ -import traceback - from cpl_core.configuration.configuration_model_abc import ConfigurationModelABC -from cpl_core.console import Console class PostBuildSettings(ConfigurationModelABC): - def __init__(self): + def __init__(self, keep_configs=None, config_paths=None): ConfigurationModelABC.__init__(self) - self._keep_config = [] - self._config_paths = [] + self._keep_config = keep_configs if keep_configs is not None else [] + self._config_paths = config_paths if config_paths is not None else [] @property def keep_config(self) -> list[str]: @@ -18,11 +15,3 @@ class PostBuildSettings(ConfigurationModelABC): @property def config_paths(self) -> list[str]: return self._config_paths - - def from_dict(self, settings: dict): - try: - self._keep_config = settings["KeepConfigs"] - self._config_paths = settings["ConfigPaths"] - except Exception as e: - Console.error(f"[ ERROR ] [ {__name__} ]: Reading error in {type(self).__name__} settings") - Console.error(f"[ EXCEPTION ] [ {__name__} ]: {e} -> {traceback.format_exc()}")