Skip to content

Commit 6dcde55

Browse files
authored
Merge pull request #95 from Integration-Automation/dev
Update both version
2 parents c0cb070 + 23a3dd5 commit 6dcde55

10 files changed

Lines changed: 76 additions & 16 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Set up Python 3.9
20+
- name: Set up Python 3.12
2121
uses: actions/setup-python@v3
2222
with:
23-
python-version: "3.9"
23+
python-version: "3.12"
2424
- name: Update pip wheel setuptools
2525
run: python -m pip install --upgrade --user pip setuptools wheel
2626
- name: Run pip dev_requirements.txt
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20-
- name: Set up Python 3.9
20+
- name: Set up Python 3.12
2121
uses: actions/setup-python@v3
2222
with:
23-
python-version: "3.9"
23+
python-version: "3.12"
2424
- name: Update pip wheel setuptools
2525
run: python -m pip install --upgrade --user pip setuptools wheel
2626
- name: Run pip requirements.txt

automation_ide/automation_editor_ui/editor_main/main_ui.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,30 @@
33
from pathlib import Path
44
from typing import List, Dict, Type
55

6+
from os import environ
7+
environ["LOCUST_SKIP_MONKEY_PATCH"] = "1"
8+
69
from PySide6.QtCore import QTimer, QCoreApplication
710
from PySide6.QtGui import QIcon
811
from PySide6.QtWidgets import QApplication, QWidget, QSystemTrayIcon
912
from je_editor import EditorMain, language_wrapper
10-
from je_editor.pyside_ui.main_ui.system_tray.extend_system_tray import ExtendSystemTray
1113
from qt_material import apply_stylesheet
1214

1315
from automation_ide.automation_editor_ui.extend_multi_language.update_language_dict import update_language_dict
1416
from automation_ide.automation_editor_ui.menu.build_menubar import add_menu_to_menubar
1517
from automation_ide.automation_editor_ui.syntax.syntax_extend import \
1618
syntax_extend_package
1719

18-
EDITOR_EXTEND_TAB: Dict[str, Type[QWidget]] = {}
20+
from je_api_testka.gui.main_widget import APITestkaWidget
21+
from je_load_density.gui.main_widget import LoadDensityWidget
22+
from je_auto_control.gui.main_widget import AutoControlGUIWidget
23+
1924

25+
EDITOR_EXTEND_TAB: Dict[str, Type[QWidget]] = {
26+
"LoadDensity GUI": LoadDensityWidget,
27+
"APITestka GUI": APITestkaWidget,
28+
"AutoControl GUI": AutoControlGUIWidget,
29+
}
2030

2131
class AutomationEditor(EditorMain):
2232

automation_ide/automation_editor_ui/menu/automation_menu/api_testka_menu/build_api_testka_menu.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from typing import TYPE_CHECKING
44

5+
from je_api_testka.gui.main_widget import APITestkaWidget
56
from je_editor import language_wrapper
67

78
from automation_ide.automation_editor_ui.menu.menu_utils import open_web_browser
@@ -108,6 +109,16 @@ def set_apitestka_menu(ui_we_want_to_set: AutomationEditor):
108109
ui_we_want_to_set.apitestka_project_menu.addAction(
109110
ui_we_want_to_set.create_apitestka_project_action
110111
)
112+
# APITestka GUI
113+
ui_we_want_to_set.api_testka_gui_action = QAction(
114+
"APITestka GUI"
115+
)
116+
ui_we_want_to_set.api_testka_gui_action.triggered.connect(
117+
lambda: add_api_testka_gui(ui_we_want_to_set)
118+
)
119+
ui_we_want_to_set.apitestka_menu.addAction(
120+
ui_we_want_to_set.api_testka_gui_action
121+
)
111122

112123

113124
def create_project() -> None:
@@ -118,3 +129,8 @@ def create_project() -> None:
118129
package.create_project_dir()
119130
except ImportError as error:
120131
print(repr(error), file=sys.stderr)
132+
133+
def add_api_testka_gui(ui_we_want_to_set: AutomationEditor) -> None:
134+
ui_we_want_to_set.tab_widget.addTab(
135+
APITestkaWidget(), "APITestka GUI"
136+
)

automation_ide/automation_editor_ui/menu/automation_menu/auto_control_menu/build_autocontrol_menu.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from typing import TYPE_CHECKING
44

5+
from je_auto_control.gui.main_widget import AutoControlGUIWidget
56
from je_editor import EditorWidget, language_wrapper
67

78
from automation_ide.automation_editor_ui.menu.menu_utils import open_web_browser
@@ -130,6 +131,16 @@ def set_autocontrol_menu(ui_we_want_to_set: AutomationEditor):
130131
ui_we_want_to_set.autocontrol_record_menu.addAction(
131132
ui_we_want_to_set.stop_record_action
132133
)
134+
# AutoControl GUI
135+
ui_we_want_to_set.autocontrol_gui_action = QAction(
136+
"AutoControl GUI"
137+
)
138+
ui_we_want_to_set.autocontrol_gui_action.triggered.connect(
139+
lambda: add_autocontrol_gui(ui_we_want_to_set)
140+
)
141+
ui_we_want_to_set.autocontrol_menu.addAction(
142+
ui_we_want_to_set.autocontrol_gui_action
143+
)
133144

134145

135146
def create_project() -> None:
@@ -145,3 +156,9 @@ def stop_record(editor_instance: AutomationEditor):
145156
widget = editor_instance.tab_widget.currentWidget()
146157
if isinstance(widget, EditorWidget):
147158
widget.code_edit.appendPlainText(str(je_auto_control.stop_record()))
159+
160+
161+
def add_autocontrol_gui(ui_we_want_to_set: AutomationEditor) -> None:
162+
ui_we_want_to_set.tab_widget.addTab(
163+
AutoControlGUIWidget(), "AutoControl GUI"
164+
)

automation_ide/automation_editor_ui/menu/automation_menu/load_density_menu/build_load_density_menu.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from typing import TYPE_CHECKING
44

55
from je_editor import language_wrapper
6+
from je_load_density.gui.main_widget import LoadDensityWidget
67

78
from automation_ide.automation_editor_ui.menu.menu_utils import open_web_browser
89

@@ -108,6 +109,16 @@ def set_load_density_menu(ui_we_want_to_set: AutomationEditor):
108109
ui_we_want_to_set.load_density_project_menu.addAction(
109110
ui_we_want_to_set.create_load_density_project_action
110111
)
112+
# AutoControl GUI
113+
ui_we_want_to_set.load_density_gui_action = QAction(
114+
"LoadDensity GUI"
115+
)
116+
ui_we_want_to_set.load_density_gui_action.triggered.connect(
117+
lambda: add_load_density_gui(ui_we_want_to_set)
118+
)
119+
ui_we_want_to_set.load_density_menu.addAction(
120+
ui_we_want_to_set.load_density_gui_action
121+
)
111122

112123

113124
def create_project() -> None:
@@ -118,3 +129,9 @@ def create_project() -> None:
118129
package.create_project_dir()
119130
except ImportError as error:
120131
print(repr(error), file=sys.stderr)
132+
133+
134+
def add_load_density_gui(ui_we_want_to_set: AutomationEditor) -> None:
135+
ui_we_want_to_set.tab_widget.addTab(
136+
LoadDensityWidget(), "LoadDensity GUI"
137+
)

dev.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "automation_ide_dev"
9-
version = "0.0.47"
9+
version = "0.0.48"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]
1313
description = "AutomationEditor for multi automation"
14-
requires-python = ">=3.9"
14+
requires-python = ">=3.10"
1515
license-files = ["LICENSE"]
1616
dependencies = [
1717
"je-editor", "je_auto_control", "je_web_runner",
1818
"je_load_density", "je_api_testka", "je-mail-thunder",
19-
"automation-file", "PySide6==6.9.0", "test_pioneer"
19+
"automation-file", "PySide6==6.9.1", "test_pioneer"
2020
]
2121
classifiers = [
22-
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
2323
"Development Status :: 2 - Pre-Alpha",
2424
"Environment :: Win32 (MS Windows)",
2525
"Environment :: MacOS X",

dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ je-mail-thunder
88
automation_ide_dev
99
sphinx
1010
sphinx-rtd-theme
11-
PySide6==6.9.0
11+
PySide6==6.9.1
1212
auto-py-to-exe
1313
test_pioneer

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "automation_ide"
9-
version = "0.0.42"
9+
version = "0.0.43"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]
1313
description = "AutomationEditor for multi automation"
14-
requires-python = ">=3.9"
14+
requires-python = ">=3.10"
1515
license-files = ["LICENSE"]
1616
dependencies = [
1717
"je-editor", "je_auto_control", "je_web_runner",
1818
"je_load_density", "je_api_testka", "je-mail-thunder",
19-
"automation-file", "PySide6==6.9.0", "test_pioneer"
19+
"automation-file", "PySide6==6.9.1", "test_pioneer"
2020
]
2121
classifiers = [
22-
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
2323
"Development Status :: 2 - Pre-Alpha",
2424
"Environment :: Win32 (MS Windows)",
2525
"Environment :: MacOS X",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
automation_ide
2-
PySide6==6.9.0
2+
PySide6==6.9.1

0 commit comments

Comments
 (0)