Skip to content
Merged

Dev #113

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,5 @@ dmypy.json
.jeditor
**/.jeditor
**/user_setting.*
bing_cookies.*
bing_cookies.*
**/output
9 changes: 5 additions & 4 deletions dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ build-backend = "setuptools.build_meta"

[project]
name = "pybreeze_dev"
version = "1.0.5"
version = "1.0.10"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
description = "AutomationEditor for multi automation"
description = "IDE 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.2", "test_pioneer", "paramiko"
"automation-file", "PySide6==6.11.0", "test_pioneer", "paramiko",
"jupyterlab",
]
classifiers = [
"Programming Language :: Python :: 3.10",
Expand Down
16 changes: 8 additions & 8 deletions exe/auto_py_to_exe_setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
{
"optionDest": "filenames",
"value": "C:/CodeWorkspace/Python/AutomationIDE/exe/start_automation_editor.py"
"value": "C:/CodeWorkspace/Python/PyBreeze/exe/start_pybreeze.py"
},
{
"optionDest": "onefile",
Expand All @@ -19,11 +19,11 @@
},
{
"optionDest": "icon_file",
"value": "C:/CodeWorkspace/Python/AutomationIDE/exe/automation_ide.ico"
"value": "C:/CodeWorkspace/Python/PyBreeze/exe/pybreeze_icon.ico"
},
{
"optionDest": "name",
"value": "AutomationIDE"
"value": "PyBreeze"
},
{
"optionDest": "clean_build",
Expand Down Expand Up @@ -59,23 +59,23 @@
},
{
"optionDest": "datas",
"value": "C:/CodeWorkspace/Python/AutomationIDE/.venv/Lib/site-packages/ipython-9.8.0.dist-info;ipython-9.8.0.dist-info/"
"value": "C:/CodeWorkspace/Python/PyBreeze/.venv/Lib/site-packages/ipython-9.11.0.dist-info;ipython-9.11.0.dist-info/"
},
{
"optionDest": "datas",
"value": "C:/CodeWorkspace/Python/AutomationIDE/.venv/Lib/site-packages/IPython;.IPython/"
"value": "C:/CodeWorkspace/Python/PyBreeze/.venv/Lib/site-packages/IPython;.IPython/"
},
{
"optionDest": "datas",
"value": "C:/CodeWorkspace/Python/AutomationIDE/.venv/Lib/site-packages/ipykernel-7.1.0.dist-info;ipykernel-7.1.0.dist-info/"
"value": "C:/CodeWorkspace/Python/PyBreeze/.venv/Lib/site-packages/ipykernel-7.2.0.dist-info;ipykernel-7.2.0.dist-info/"
},
{
"optionDest": "datas",
"value": "C:/CodeWorkspace/Python/AutomationIDE/.venv/Lib/site-packages/ipykernel;ipykernel/"
"value": "C:/CodeWorkspace/Python/PyBreeze/.venv/Lib/site-packages/ipykernel;ipykernel/"
},
{
"optionDest": "pathex",
"value": "C:/CodeWorkspace/Python/AutomationIDE/.venv"
"value": "C:/CodeWorkspace/Python/PyBreeze/.venv"
}
],
"nonPyinstallerOptions": {
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pybreeze/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow
from pybreeze.pybreeze_ui.editor_main.main_ui import EDITOR_EXTEND_TAB
from pybreeze.pybreeze_ui.editor_main.main_ui import start_editor

__all__ = [
"start_editor", "AutomationEditor", "EDITOR_EXTEND_TAB"
"start_editor", "PyBreezeMainWindow", "EDITOR_EXTEND_TAB"
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@
from pybreeze.extend.process_executor.process_executor_utils import build_process

if TYPE_CHECKING:
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow
import sys

from pybreeze.utils.file_process.get_dir_file_list import ask_and_get_dir_files_as_list


def call_api_testka(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "je_api_testka", exec_str, False, program_buffer)


def call_api_testka_with_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "je_api_testka", exec_str, True, program_buffer)


def call_api_testka_multi_file(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand All @@ -47,7 +47,7 @@ def call_api_testka_multi_file(


def call_api_testka_multi_file_and_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@
from pybreeze.extend.process_executor.process_executor_utils import build_process

if TYPE_CHECKING:
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow
import sys

from pybreeze.utils.file_process.get_dir_file_list import ask_and_get_dir_files_as_list


def call_auto_control(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "je_auto_control", exec_str, False, program_buffer)


def call_auto_control_with_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "je_auto_control", exec_str, True, program_buffer)


def call_auto_control_multi_file(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
need_to_execute_list: list = ask_and_get_dir_files_as_list(main_window)
Expand All @@ -44,7 +44,7 @@ def call_auto_control_multi_file(


def call_auto_control_multi_file_and_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@
from pybreeze.extend.process_executor.process_executor_utils import build_process

if TYPE_CHECKING:
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow
import sys

from pybreeze.utils.file_process.get_dir_file_list import ask_and_get_dir_files_as_list


def call_file_automation_test(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "automation_file", exec_str, False, program_buffer)


def call_file_automation_test_with_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "automation_file", exec_str, True, program_buffer)


def call_file_automation_test_multi_file(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand All @@ -47,7 +47,7 @@ def call_file_automation_test_multi_file(


def call_file_automation_test_multi_file_and_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@
from pybreeze.extend.process_executor.process_executor_utils import build_process

if TYPE_CHECKING:
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow
import sys

from pybreeze.utils.file_process.get_dir_file_list import ask_and_get_dir_files_as_list


def call_load_density(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "je_load_density", exec_str, False, program_buffer)


def call_load_density_with_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "je_load_density", exec_str, True, program_buffer)


def call_load_density_multi_file(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand All @@ -47,7 +47,7 @@ def call_load_density_multi_file(


def call_load_density_multi_file_and_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from pybreeze.extend.process_executor.process_executor_utils import build_process

if TYPE_CHECKING:
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow


def call_mail_thunder(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
Expand Down
6 changes: 3 additions & 3 deletions pybreeze/extend/process_executor/process_executor_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
from pybreeze.utils.exception.exceptions import ITETestExecutorException

if TYPE_CHECKING:
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow


def build_process(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
package: str,
exec_str: Union[str, None] = None,
send_mail: bool = False,
Expand All @@ -42,7 +42,7 @@ def build_process(


def start_process(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
package: str,
test_format_code: str,
send_mail: bool = False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
from pybreeze.pybreeze_ui.show_code_window.code_window import CodeWindow

if TYPE_CHECKING:
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow


class TestPioneerProcess(object):

def __init__(
self,
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
executable_path: str,
program_buffer: int = 1024000,
encoding: str = "utf-8",
):
self._main_window: AutomationEditor = main_window
self._main_window: PyBreezeMainWindow = main_window
self._widget: QWidget = main_window.tab_widget.currentWidget()
# Code window init
self._code_window = CodeWindow()
Expand Down Expand Up @@ -175,7 +175,7 @@ def start_test_pioneer_process(self):
self._timer.start()


def init_and_start_test_pioneer_process(ui_we_want_to_set: AutomationEditor, file_path: str):
def init_and_start_test_pioneer_process(ui_we_want_to_set: PyBreezeMainWindow, 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()
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@
from pybreeze.extend.process_executor.process_executor_utils import build_process

if TYPE_CHECKING:
from pybreeze.pybreeze_ui.editor_main.main_ui import AutomationEditor
from pybreeze.pybreeze_ui.editor_main.main_ui import PyBreezeMainWindow
import sys

from pybreeze.utils.file_process.get_dir_file_list import ask_and_get_dir_files_as_list


def call_web_runner_test(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "je_web_runner", exec_str, False, program_buffer)


def call_web_runner_test_with_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
exec_str: Union[str, None] = None,
program_buffer: int = 1024000
):
build_process(main_window, "je_web_runner", exec_str, True, program_buffer)


def call_web_runner_test_multi_file(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand All @@ -47,7 +47,7 @@ def call_web_runner_test_multi_file(


def call_web_runner_test_multi_file_and_send(
main_window: AutomationEditor,
main_window: PyBreezeMainWindow,
program_buffer: int = 1024000
):
try:
Expand Down
Loading
Loading