-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update stable and dev version
- Loading branch information
Showing
6 changed files
with
60 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 8 additions & 13 deletions
21
automation_ide/automation_editor_ui/syntax/syntax_extend.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,32 @@ | ||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
from typing import TYPE_CHECKING | ||
|
||
from je_editor import EditorWidget | ||
|
||
if TYPE_CHECKING: | ||
from automation_ide.automation_editor_ui.editor_main.main_ui import AutomationEditor | ||
from PySide6.QtCore import QRegularExpression | ||
from PySide6.QtGui import QTextCharFormat, QColor | ||
from PySide6.QtGui import QColor | ||
|
||
from automation_ide.automation_editor_ui.syntax.syntax_keyword import \ | ||
package_keyword_list | ||
from automation_ide.utils.manager.package_manager.package_manager_class import package_manager | ||
|
||
from je_editor import syntax_word_setting_dict | ||
from je_editor import syntax_extend_setting_dict | ||
|
||
|
||
def syntax_extend_package(main_window: AutomationEditor) -> None: | ||
widget = main_window.tab_widget.currentWidget() | ||
if isinstance(widget, EditorWidget): | ||
for package in package_manager.syntax_check_list: | ||
text_char_format = QTextCharFormat() | ||
text_char_format.setForeground(QColor(255, 255, 0)) | ||
for word in package_keyword_list.get(package): | ||
# Highlight | ||
pattern = QRegularExpression(rf"\b{word}\b") | ||
widget.code_edit.highlighter.highlight_rules.append((pattern, text_char_format)) | ||
syntax_extend_setting_dict.update({".json": {}}) | ||
for package in package_manager.syntax_check_list: | ||
syntax_word_setting_dict.update( | ||
syntax_extend_setting_dict.get(".json").update( | ||
{ | ||
package: { | ||
"words": set(package_keyword_list.get(package)), | ||
"color": QColor(255, 255, 0) | ||
} | ||
} | ||
) | ||
widget = main_window.tab_widget.currentWidget() | ||
if isinstance(widget, EditorWidget): | ||
widget.code_edit.reset_highlighter() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ je-mail-thunder | |
automation_ide_dev | ||
sphinx | ||
sphinx-rtd-theme | ||
PySide6==6.7.3 | ||
PySide6==6.8.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
automation_ide | ||
PySide6==6.7.3 | ||
PySide6==6.8.2 | ||
je_editor | ||
je_auto_control |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Rename to build stable version | ||
# This is stable version | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "automation_ide" | ||
version = "0.0.36" | ||
authors = [ | ||
{ name = "JE-Chen", email = "jechenmailman@gmail.com" }, | ||
] | ||
description = "AutomationEditor for multi automation" | ||
requires-python = ">=3.9" | ||
license = { text = "MIT" } | ||
dependencies = [ | ||
"je-editor", "je_auto_control", "je_web_runner", | ||
"je_load_density", "je_api_testka", "je-mail-thunder", | ||
"automation-file", "PySide6==6.8.2" | ||
] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3.9", | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Environment :: Win32 (MS Windows)", | ||
"Environment :: MacOS X", | ||
"Environment :: X11 Applications", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent" | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/Intergration-Automation-Testing/AutomationEditor" | ||
Code = "https://github.com/Intergration-Automation-Testing/AutomationEditor" | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[tool.setuptools] | ||
license-files = ["LICENSE"] | ||
|
||
[tool.setuptools.packages] | ||
find = { namespaces = false } |