Skip to content

Commit

Permalink
Update stable and dev version
Browse files Browse the repository at this point in the history
Update stable and dev version
  • Loading branch information
JE-Chen committed Feb 2, 2025
1 parent 3298927 commit 883ed86
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 22 deletions.
4 changes: 2 additions & 2 deletions automation_ide/automation_editor_ui/menu/menu_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import TYPE_CHECKING

from je_editor import JEBrowser
from je_editor import BrowserWidget

if TYPE_CHECKING:
from automation_ide.automation_editor_ui.editor_main.main_ui import AutomationEditor
Expand All @@ -11,6 +11,6 @@
def open_web_browser(
automation_editor_instance: AutomationEditor, url: str, tab_name: str) -> None:
automation_editor_instance.tab_widget.addTab(
JEBrowser(start_url=url),
BrowserWidget(start_url=url),
f"{tab_name}{automation_editor_instance.tab_widget.count()}"
)
21 changes: 8 additions & 13 deletions automation_ide/automation_editor_ui/syntax/syntax_extend.py
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()
2 changes: 1 addition & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ je-mail-thunder
automation_ide_dev
sphinx
sphinx-rtd-theme
PySide6==6.7.3
PySide6==6.8.2
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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.35"
name = "automation_ide_dev"
version = "0.0.40"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
Expand All @@ -16,7 +16,7 @@ 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.7.3"
"automation-file", "PySide6==6.8.2"
]
classifiers = [
"Programming Language :: Python :: 3.9",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
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
43 changes: 43 additions & 0 deletions stable.toml
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 }

0 comments on commit 883ed86

Please sign in to comment.