diff --git a/.github/workflows/dev_python3_12.yml b/.github/workflows/dev_python3_12.yml index d512af4..742af84 100644 --- a/.github/workflows/dev_python3_12.yml +++ b/.github/workflows/dev_python3_12.yml @@ -1,4 +1,4 @@ -name: AutoControl Dev Python3.9 +name: AutoControl Dev Python3.12 on: push: diff --git a/.github/workflows/stable_python3_12.yml b/.github/workflows/stable_python3_12.yml index 41a4254..da2a450 100644 --- a/.github/workflows/stable_python3_12.yml +++ b/.github/workflows/stable_python3_12.yml @@ -1,4 +1,4 @@ -name: AutoControl Stable Python3.9 +name: AutoControl Stable Python3.12 on: push: diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3b0a0e5..92fe69f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,19 +5,9 @@ - - - - - - - + + - - - - - @@ -619,8 +610,8 @@ - + @@ -630,7 +621,7 @@ - + diff --git a/je_auto_control/utils/exception/exception_tags.py b/je_auto_control/utils/exception/exception_tags.py index 9aa8e06..36428ad 100644 --- a/je_auto_control/utils/exception/exception_tags.py +++ b/je_auto_control/utils/exception/exception_tags.py @@ -1,63 +1,80 @@ # error tags -je_auto_control_error: str = "Auto control error" -je_auto_control_critical_exit_error: str = "Auto control critical exit error" +je_auto_control_error: str = "Auto-control error" +je_auto_control_critical_exit_error: str = "Auto-control critical exit error" + # os tags -linux_import_error: str = "should be only loaded on linux" -osx_import_error: str = "should be only loaded on MacOS" -windows_import_error: str = "should be only loaded on windows" -macos_record_error: str = "macos cant use recorder" +linux_import_error: str = "Should only be loaded on Linux" +osx_import_error: str = "Should only be loaded on macOS" +windows_import_error: str = "Should only be loaded on Windows" +macos_record_error: str = "Cannot use recorder on macOS" + # keyboard tags -keyboard_error: str = "Auto control keyboard error" -keyboard_press_key: str = "keyboard press key error" -keyboard_release_key: str = "keyboard release key error" -keyboard_type_key: str = "keyboard type key error" -keyboard_write: str = "keyboard write error" -keyboard_write_cant_find: str = "keyboard write error cant find key" -keyboard_hotkey: str = "keyboard hotkey error" +keyboard_error: str = "Auto-control keyboard error" +keyboard_press_key: str = "Keyboard key press error" +keyboard_release_key: str = "Keyboard key release error" +keyboard_type_key: str = "Keyboard key type error" +keyboard_write: str = "Keyboard write error" +keyboard_write_cant_find: str = "Keyboard write error: key not found" +keyboard_hotkey: str = "Keyboard hotkey error" + # mouse tags -mouse_error: str = "Auto control mouse error" -mouse_get_position: str = "mouse get position error" -mouse_set_position: str = "mouse set position error" -mouse_press_mouse: str = "mouse press mouse error" -mouse_release_mouse: str = "mouse release key error" -mouse_click_mouse: str = "mouse click mouse error" -mouse_scroll: str = "mouse scroll error" -mouse_wrong_value: str = "mouse value error" +mouse_error: str = "Auto-control mouse error" +mouse_get_position: str = "Mouse position retrieval error" +mouse_set_position: str = "Mouse position set error" +mouse_press_mouse: str = "Mouse press error" +mouse_release_mouse: str = "Mouse release error" +mouse_click_mouse: str = "Mouse click error" +mouse_scroll: str = "Mouse scroll error" +mouse_wrong_value: str = "Mouse value error" + # screen tags -screen_error: str = "Auto control screen error" -screen_get_size: str = "screen get size error" -screen_screenshot: str = "screen screenshot error" +screen_error: str = "Auto-control screen error" +screen_get_size: str = "Screen size retrieval error" +screen_screenshot: str = "Screen screenshot error" + # table tags -table_cant_find_key: str = "cant find key error" +table_cant_find_key: str = "Cannot find key error" + # cv2_utils tags -cant_find_image: str = "cant find cv2_utils" -find_image_error_variable: str = "variable error" +cant_find_image: str = "Cannot find image" +find_image_error_variable: str = "Variable error" + # listener tags -listener_error: str = "Auto control listener error" +listener_error: str = "Auto-control listener error" + # test_record tags -record_queue_error: str = "cant get test_record queue its none are you using stop test_record before test_record" +record_queue_error: str = "Cannot get test_record queue: it is None. Are you stopping test_record before running it?" record_not_found_action_error: str = "test_record action not found" + # json tag -cant_execute_action_error: str = "cant execute action" -cant_generate_json_report: str = "can't generate json report" -cant_find_json_error: str = "cant find json file" -cant_save_json_error: str = "cant save json file" -action_is_null_error: str = "json action is null" +cant_execute_action_error: str = "Cannot execute action" +cant_generate_json_report: str = "Cannot generate JSON report" +cant_find_json_error: str = "Cannot find JSON file" +cant_save_json_error: str = "Cannot save JSON file" +action_is_null_error: str = "JSON action is null" + # timeout tag -timeout_need_on_main_error: str = "should put timeout function on main" +timeout_need_on_main_error: str = "Timeout function must be in main" + # HTML -html_generate_no_data_tag: str = "record is None" +html_generate_no_data_tag: str = "Record is None" + # add command -add_command_exception: str = "command value type should be as method or function" +add_command_exception: str = "Command value must be a method or function" + # executor -executor_list_error: str = "executor receive wrong data list is none or wrong type" +executor_list_error: str = "Executor received invalid data: list is None or wrong type" + # argparse -argparse_get_wrong_data: str = "argparse receive wrong data" +argparse_get_wrong_data: str = "Argparse received invalid data" + # XML -cant_read_xml_error: str = "can't read xml" -xml_type_error: str = "xml type error" +cant_read_xml_error: str = "Cannot read XML" +xml_type_error: str = "XML type error" + # Callback executor -get_bad_trigger_method: str = "get bad trigger method, only accept kwargs and args" -get_bad_trigger_function: str = "get bad trigger function only accept function in event_dict" +get_bad_trigger_method: str = "Invalid trigger method: only kwargs and args accepted" +get_bad_trigger_function: str = "Invalid trigger function: only functions in event_dict accepted" + # Can't find file -can_not_find_file: str = "Can not find file" +can_not_find_file: str = "Cannot find file" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 989c2d3..13e70d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ -# Rename to build stable version -# This is stable version +# Rename to build dev version +# This is dev version [build-system] -requires = ["setuptools>=61.0"] +requires = ["setuptools"] build-backend = "setuptools.build_meta" [project] -name = "je_auto_control" -version = "0.0.170" +name = "je_auto_control_dev" +version = "0.0.117" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] diff --git a/dev.toml b/stable.toml similarity index 89% rename from dev.toml rename to stable.toml index b749bae..0142098 100644 --- a/dev.toml +++ b/stable.toml @@ -1,12 +1,12 @@ -# Rename to build dev version -# This is dev version +# Rename to build stable version +# This is stable version [build-system] -requires = ["setuptools"] +requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] -name = "je_auto_control_dev" -version = "0.0.116" +name = "je_auto_control" +version = "0.0.171" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ]