Skip to content

Commit 883ed86

Browse files
committed
Update stable and dev version
Update stable and dev version
1 parent 3298927 commit 883ed86

File tree

6 files changed

+60
-22
lines changed

6 files changed

+60
-22
lines changed

automation_ide/automation_editor_ui/menu/menu_utils.py

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

33
from typing import TYPE_CHECKING
44

5-
from je_editor import JEBrowser
5+
from je_editor import BrowserWidget
66

77
if TYPE_CHECKING:
88
from automation_ide.automation_editor_ui.editor_main.main_ui import AutomationEditor
@@ -11,6 +11,6 @@
1111
def open_web_browser(
1212
automation_editor_instance: AutomationEditor, url: str, tab_name: str) -> None:
1313
automation_editor_instance.tab_widget.addTab(
14-
JEBrowser(start_url=url),
14+
BrowserWidget(start_url=url),
1515
f"{tab_name}{automation_editor_instance.tab_widget.count()}"
1616
)
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,32 @@
11
from __future__ import annotations
22

3+
from pathlib import Path
34
from typing import TYPE_CHECKING
45

56
from je_editor import EditorWidget
67

78
if TYPE_CHECKING:
89
from automation_ide.automation_editor_ui.editor_main.main_ui import AutomationEditor
9-
from PySide6.QtCore import QRegularExpression
10-
from PySide6.QtGui import QTextCharFormat, QColor
10+
from PySide6.QtGui import QColor
1111

1212
from automation_ide.automation_editor_ui.syntax.syntax_keyword import \
1313
package_keyword_list
1414
from automation_ide.utils.manager.package_manager.package_manager_class import package_manager
1515

16-
from je_editor import syntax_word_setting_dict
16+
from je_editor import syntax_extend_setting_dict
1717

1818

1919
def syntax_extend_package(main_window: AutomationEditor) -> None:
20-
widget = main_window.tab_widget.currentWidget()
21-
if isinstance(widget, EditorWidget):
22-
for package in package_manager.syntax_check_list:
23-
text_char_format = QTextCharFormat()
24-
text_char_format.setForeground(QColor(255, 255, 0))
25-
for word in package_keyword_list.get(package):
26-
# Highlight
27-
pattern = QRegularExpression(rf"\b{word}\b")
28-
widget.code_edit.highlighter.highlight_rules.append((pattern, text_char_format))
20+
syntax_extend_setting_dict.update({".json": {}})
2921
for package in package_manager.syntax_check_list:
30-
syntax_word_setting_dict.update(
22+
syntax_extend_setting_dict.get(".json").update(
3123
{
3224
package: {
3325
"words": set(package_keyword_list.get(package)),
3426
"color": QColor(255, 255, 0)
3527
}
3628
}
3729
)
30+
widget = main_window.tab_widget.currentWidget()
31+
if isinstance(widget, EditorWidget):
32+
widget.code_edit.reset_highlighter()

dev_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ je-mail-thunder
88
automation_ide_dev
99
sphinx
1010
sphinx-rtd-theme
11-
PySide6==6.7.3
11+
PySide6==6.8.2

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Rename to build stable version
2-
# This is stable version
1+
# Rename to dev version
2+
# This is dev version
33
[build-system]
44
requires = ["setuptools>=61.0"]
55
build-backend = "setuptools.build_meta"
66

77
[project]
8-
name = "automation_ide"
9-
version = "0.0.35"
8+
name = "automation_ide_dev"
9+
version = "0.0.40"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]
@@ -16,7 +16,7 @@ license = { text = "MIT" }
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.7.3"
19+
"automation-file", "PySide6==6.8.2"
2020
]
2121
classifiers = [
2222
"Programming Language :: Python :: 3.9",

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
automation_ide
2-
PySide6==6.7.3
2+
PySide6==6.8.2
33
je_editor
44
je_auto_control

stable.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Rename to build stable version
2+
# This is stable version
3+
[build-system]
4+
requires = ["setuptools>=61.0"]
5+
build-backend = "setuptools.build_meta"
6+
7+
[project]
8+
name = "automation_ide"
9+
version = "0.0.36"
10+
authors = [
11+
{ name = "JE-Chen", email = "[email protected]" },
12+
]
13+
description = "AutomationEditor for multi automation"
14+
requires-python = ">=3.9"
15+
license = { text = "MIT" }
16+
dependencies = [
17+
"je-editor", "je_auto_control", "je_web_runner",
18+
"je_load_density", "je_api_testka", "je-mail-thunder",
19+
"automation-file", "PySide6==6.8.2"
20+
]
21+
classifiers = [
22+
"Programming Language :: Python :: 3.9",
23+
"Development Status :: 2 - Pre-Alpha",
24+
"Environment :: Win32 (MS Windows)",
25+
"Environment :: MacOS X",
26+
"Environment :: X11 Applications",
27+
"License :: OSI Approved :: MIT License",
28+
"Operating System :: OS Independent"
29+
]
30+
31+
[project.urls]
32+
Homepage = "https://github.com/Intergration-Automation-Testing/AutomationEditor"
33+
Code = "https://github.com/Intergration-Automation-Testing/AutomationEditor"
34+
35+
[project.readme]
36+
file = "README.md"
37+
content-type = "text/markdown"
38+
39+
[tool.setuptools]
40+
license-files = ["LICENSE"]
41+
42+
[tool.setuptools.packages]
43+
find = { namespaces = false }

0 commit comments

Comments
 (0)