diff --git a/automation_ide/automation_editor_ui/editor_main/main_ui.py b/automation_ide/automation_editor_ui/editor_main/main_ui.py index f403f1a..0faddc0 100644 --- a/automation_ide/automation_editor_ui/editor_main/main_ui.py +++ b/automation_ide/automation_editor_ui/editor_main/main_ui.py @@ -1,9 +1,9 @@ import os import sys +from os import environ from pathlib import Path from typing import List, Dict, Type -from os import environ environ["LOCUST_SKIP_MONKEY_PATCH"] = "1" from PySide6.QtCore import QTimer, QCoreApplication @@ -21,13 +21,13 @@ from je_load_density.gui.main_widget import LoadDensityWidget from je_auto_control.gui.main_widget import AutoControlGUIWidget - EDITOR_EXTEND_TAB: Dict[str, Type[QWidget]] = { "LoadDensity GUI": LoadDensityWidget, "APITestka GUI": APITestkaWidget, "AutoControl GUI": AutoControlGUIWidget, } + class AutomationEditor(EditorMain): def __init__(self, debug_mode: bool = False, show_system_tray_ray: bool = False): diff --git a/automation_ide/automation_editor_ui/menu/automation_menu/api_testka_menu/build_api_testka_menu.py b/automation_ide/automation_editor_ui/menu/automation_menu/api_testka_menu/build_api_testka_menu.py index c9323a3..c614c69 100644 --- a/automation_ide/automation_editor_ui/menu/automation_menu/api_testka_menu/build_api_testka_menu.py +++ b/automation_ide/automation_editor_ui/menu/automation_menu/api_testka_menu/build_api_testka_menu.py @@ -130,7 +130,8 @@ def create_project() -> None: except ImportError as error: print(repr(error), file=sys.stderr) + def add_api_testka_gui(ui_we_want_to_set: AutomationEditor) -> None: ui_we_want_to_set.tab_widget.addTab( - APITestkaWidget(), "APITestka GUI" - ) \ No newline at end of file + APITestkaWidget(), "APITestka GUI" + ) diff --git a/automation_ide/automation_editor_ui/menu/automation_menu/auto_control_menu/build_autocontrol_menu.py b/automation_ide/automation_editor_ui/menu/automation_menu/auto_control_menu/build_autocontrol_menu.py index 92ee26d..32a9fd4 100644 --- a/automation_ide/automation_editor_ui/menu/automation_menu/auto_control_menu/build_autocontrol_menu.py +++ b/automation_ide/automation_editor_ui/menu/automation_menu/auto_control_menu/build_autocontrol_menu.py @@ -27,7 +27,7 @@ def set_autocontrol_menu(ui_we_want_to_set: AutomationEditor): :return: None """ ui_we_want_to_set.autocontrol_menu = ui_we_want_to_set.automation_menu.addMenu( - language_wrapper.language_word_dict.get("autocontrol_menu_label")) + language_wrapper.language_word_dict.get("autocontrol_menu_label")) ui_we_want_to_set.autocontrol_run_menu = ui_we_want_to_set.autocontrol_menu.addMenu( language_wrapper.language_word_dict.get("run_label")) # Run AutoControl Script diff --git a/automation_ide/automation_editor_ui/menu/automation_menu/test_pioneer_menu/build_test_pioneer_menu.py b/automation_ide/automation_editor_ui/menu/automation_menu/test_pioneer_menu/build_test_pioneer_menu.py index 3ce06b7..1ff0a38 100644 --- a/automation_ide/automation_editor_ui/menu/automation_menu/test_pioneer_menu/build_test_pioneer_menu.py +++ b/automation_ide/automation_editor_ui/menu/automation_menu/test_pioneer_menu/build_test_pioneer_menu.py @@ -5,14 +5,15 @@ from PySide6.QtWidgets import QFileDialog, QMessageBox -from automation_ide.extend.process_executor.test_pioneer.test_pioneer_process_manager import init_and_start_test_pioneer_process +from automation_ide.extend.process_executor.test_pioneer.test_pioneer_process_manager import \ + init_and_start_test_pioneer_process if TYPE_CHECKING: from automation_ide.automation_editor_ui.editor_main.main_ui import AutomationEditor from PySide6.QtGui import QAction from je_editor import language_wrapper -from test_pioneer import create_template_dir, execute_yaml +from test_pioneer import create_template_dir def set_test_pioneer_menu(ui_we_want_to_set: AutomationEditor): diff --git a/automation_ide/extend/process_executor/python_task_process_manager.py b/automation_ide/extend/process_executor/python_task_process_manager.py index 9901284..d8e4e62 100644 --- a/automation_ide/extend/process_executor/python_task_process_manager.py +++ b/automation_ide/extend/process_executor/python_task_process_manager.py @@ -160,7 +160,7 @@ def print_and_clear_queue(self): def read_program_output_from_process(self): while self.still_run_program: self.process: subprocess.Popen - program_output_data = self.process.stdout.readline(self.program_buffer_size)\ + program_output_data = self.process.stdout.readline(self.program_buffer_size) \ .decode("utf-8", "replace") if self.process: self.process.stdout.flush() @@ -169,7 +169,7 @@ def read_program_output_from_process(self): def read_program_error_output_from_process(self): while self.still_run_program: - program_error_output_data = self.process.stderr.readline(self.program_buffer_size)\ + program_error_output_data = self.process.stderr.readline(self.program_buffer_size) \ .decode("utf-8", "replace") if self.process: self.process.stderr.flush() diff --git a/automation_ide/extend/process_executor/test_pioneer/test_pioneer_process_manager.py b/automation_ide/extend/process_executor/test_pioneer/test_pioneer_process_manager.py index 047a9b4..94bc637 100644 --- a/automation_ide/extend/process_executor/test_pioneer/test_pioneer_process_manager.py +++ b/automation_ide/extend/process_executor/test_pioneer/test_pioneer_process_manager.py @@ -135,7 +135,7 @@ def print_and_clear_queue(self): def read_program_output_from_process(self): while self._still_run_program: self.process: subprocess.Popen - program_output_data = self._process.stdout.readline(self._program_buffer_size)\ + program_output_data = self._process.stdout.readline(self._program_buffer_size) \ .decode("utf-8", "replace") if self._process: self._process.stdout.flush() @@ -144,7 +144,7 @@ def read_program_output_from_process(self): def read_program_error_output_from_process(self): while self._still_run_program: - program_error_output_data = self._process.stderr.readline(self._program_buffer_size)\ + program_error_output_data = self._process.stderr.readline(self._program_buffer_size) \ .decode("utf-8", "replace") if self._process: self._process.stderr.flush() @@ -176,8 +176,6 @@ def start_test_pioneer_process(self): def init_and_start_test_pioneer_process(ui_we_want_to_set: AutomationEditor, file_path: str): - test_pioneer_process_manager = TestPioneerProcess( - main_window=ui_we_want_to_set, executable_path=file_path) - test_pioneer_process_manager.start_test_pioneer_process() - - + test_pioneer_process_manager = TestPioneerProcess( + main_window=ui_we_want_to_set, executable_path=file_path) + test_pioneer_process_manager.start_test_pioneer_process() diff --git a/automation_ide/utils/exception/exception_tags.py b/automation_ide/utils/exception/exception_tags.py index 718ab53..463b902 100644 --- a/automation_ide/utils/exception/exception_tags.py +++ b/automation_ide/utils/exception/exception_tags.py @@ -34,4 +34,4 @@ # XML cant_read_xml_error: str = "can't read XML" -xml_type_error: str = "XML type error" \ No newline at end of file +xml_type_error: str = "XML type error" diff --git a/stable.toml b/dev.toml similarity index 86% rename from stable.toml rename to dev.toml index 1e16fac..4db7076 100644 --- a/stable.toml +++ b/dev.toml @@ -1,12 +1,12 @@ -# Rename to build stable version -# This is stable version +# Rename to dev version +# This is dev version [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] -name = "automation_ide" -version = "0.0.49" +name = "automation_ide_dev" +version = "0.0.57" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] @@ -14,7 +14,7 @@ description = "AutomationEditor for multi automation" requires-python = ">=3.10" license-files = ["LICENSE"] dependencies = [ - "je-editor", "je_auto_control", "je_web_runner", + "je_editor_dev", "je_auto_control", "je_web_runner", "je_load_density", "je_api_testka", "je-mail-thunder", "automation-file", "PySide6==6.10.0", "test_pioneer" ] @@ -35,5 +35,6 @@ Code = "https://github.com/Intergration-Automation-Testing/AutomationEditor" file = "README.md" content-type = "text/markdown" + [tool.setuptools.packages] find = { namespaces = false } diff --git a/pyproject.toml b/pyproject.toml index 6817b06..9fa5762 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ -# Rename to dev version -# This is dev version +# Rename to build stable version +# This is stable version [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] -name = "automation_ide_dev" -version = "0.0.56" +name = "automation_ide" +version = "0.0.50" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] @@ -14,7 +14,7 @@ description = "AutomationEditor for multi automation" requires-python = ">=3.10" license-files = ["LICENSE"] dependencies = [ - "je_editor_dev", "je_auto_control", "je_web_runner", + "je-editor", "je_auto_control", "je_web_runner", "je_load_density", "je_api_testka", "je-mail-thunder", "automation-file", "PySide6==6.10.0", "test_pioneer" ] @@ -35,6 +35,5 @@ Code = "https://github.com/Intergration-Automation-Testing/AutomationEditor" file = "README.md" content-type = "text/markdown" - [tool.setuptools.packages] find = { namespaces = false }