From df52d92f24e2ed7b37fb99eb75d9003cbab98874 Mon Sep 17 00:00:00 2001 From: JE-Chen <33644111+JE-Chen@users.noreply.github.com> Date: Sun, 13 Jul 2025 16:15:53 +0800 Subject: [PATCH 1/3] Update Minimum Python version from 3.9 to 3.10 Update Minimum Python version from 3.9 to 3.10 --- .github/workflows/{dev_python3_9.yml => dev_python3_12.yml} | 6 +++--- .../{stable_python3_9.yml => stable_python3_12.yml} | 6 +++--- dev.toml | 4 ++-- pyproject.toml | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) rename .github/workflows/{dev_python3_9.yml => dev_python3_12.yml} (92%) rename .github/workflows/{stable_python3_9.yml => stable_python3_12.yml} (92%) diff --git a/.github/workflows/dev_python3_9.yml b/.github/workflows/dev_python3_12.yml similarity index 92% rename from .github/workflows/dev_python3_9.yml rename to .github/workflows/dev_python3_12.yml index af49900..31bef5c 100644 --- a/.github/workflows/dev_python3_9.yml +++ b/.github/workflows/dev_python3_12.yml @@ -1,4 +1,4 @@ -name: LoadDensity Dev Python 3.9 +name: LoadDensity Dev Python 3.12 on: push: @@ -17,10 +17,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: - python-version: "3.9" + python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip wheel diff --git a/.github/workflows/stable_python3_9.yml b/.github/workflows/stable_python3_12.yml similarity index 92% rename from .github/workflows/stable_python3_9.yml rename to .github/workflows/stable_python3_12.yml index da7947c..36da0db 100644 --- a/.github/workflows/stable_python3_9.yml +++ b/.github/workflows/stable_python3_12.yml @@ -1,4 +1,4 @@ -name: LoadDensity Stable Python3.9 +name: LoadDensity Stable Python3.12 on: push: @@ -17,10 +17,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: - python-version: "3.9" + python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip wheel diff --git a/dev.toml b/dev.toml index 6aef9f5..02923f0 100644 --- a/dev.toml +++ b/dev.toml @@ -11,13 +11,13 @@ authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] description = "Load & Stress Automation Freamework" -requires-python = ">=3.9" +requires-python = ">=3.10" license-files = ["LICENSE"] dependencies = [ "locust", ] classifiers = [ - "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Development Status :: 2 - Pre-Alpha", "Environment :: Win32 (MS Windows)", "Environment :: MacOS X", diff --git a/pyproject.toml b/pyproject.toml index 416a019..2b90d14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,13 +11,13 @@ authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] description = "Load & Stress Automation Freamework" -requires-python = ">=3.9" +requires-python = ">=3.10" license-files = ["LICENSE"] dependencies = [ "locust", ] classifiers = [ - "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Development Status :: 2 - Pre-Alpha", "Environment :: Win32 (MS Windows)", "Environment :: MacOS X", From e98df61a674fb352fa2716f2470a60d74b145d60 Mon Sep 17 00:00:00 2001 From: JE-Chen <33644111+JE-Chen@users.noreply.github.com> Date: Sun, 13 Jul 2025 16:35:10 +0800 Subject: [PATCH 2/3] Update both version Update both version --- pyproject.toml | 10 +++++----- dev.toml => stable.toml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) rename dev.toml => stable.toml (87%) diff --git a/pyproject.toml b/pyproject.toml index 2b90d14..10c8784 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ -# Rename to 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 = "je_load_density" -version = "0.0.60" +name = "je_load_density_dev" +version = "0.0.74" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] @@ -38,4 +38,4 @@ content-type = "text/markdown" find = { namespaces = false } [project.optional-dependencies] -gui = ["PySide6==6.9.1", "qt-material"] +gui = ["PySide6==6.9.1", "qt-material"] \ No newline at end of file diff --git a/dev.toml b/stable.toml similarity index 87% rename from dev.toml rename to stable.toml index 02923f0..9e32053 100644 --- a/dev.toml +++ b/stable.toml @@ -1,12 +1,12 @@ -# Rename to dev version -# This is dev version +# Rename to stable version +# This is stable version [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] -name = "je_load_density_dev" -version = "0.0.73" +name = "je_load_density" +version = "0.0.61" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] @@ -38,4 +38,4 @@ content-type = "text/markdown" find = { namespaces = false } [project.optional-dependencies] -gui = ["PySide6==6.9.1", "qt-material"] \ No newline at end of file +gui = ["PySide6==6.9.1", "qt-material"] From baf77aa4742c9e8b7cef07e671f520605431eeee Mon Sep 17 00:00:00 2001 From: JE-Chen <33644111+JE-Chen@users.noreply.github.com> Date: Sat, 19 Jul 2025 16:25:06 +0800 Subject: [PATCH 3/3] Update both version Update exception tags --- stable.toml => dev.toml | 10 ++--- .../utils/exception/exception_tags.py | 37 +++++++++++-------- pyproject.toml | 10 ++--- 3 files changed, 32 insertions(+), 25 deletions(-) rename stable.toml => dev.toml (87%) diff --git a/stable.toml b/dev.toml similarity index 87% rename from stable.toml rename to dev.toml index 9e32053..ba6296f 100644 --- a/stable.toml +++ b/dev.toml @@ -1,12 +1,12 @@ -# Rename to 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 = "je_load_density" -version = "0.0.61" +name = "je_load_density_dev" +version = "0.0.75" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] @@ -38,4 +38,4 @@ content-type = "text/markdown" find = { namespaces = false } [project.optional-dependencies] -gui = ["PySide6==6.9.1", "qt-material"] +gui = ["PySide6==6.9.1", "qt-material"] \ No newline at end of file diff --git a/je_load_density/utils/exception/exception_tags.py b/je_load_density/utils/exception/exception_tags.py index 1e4e19b..2abd23e 100644 --- a/je_load_density/utils/exception/exception_tags.py +++ b/je_load_density/utils/exception/exception_tags.py @@ -1,23 +1,30 @@ # locust error -not_found_locust_error: str = "locust not found" +not_found_locust_error: str = "Locust not found" + # json error -cant_reformat_json_error: str = "can't reformat json is type right?" -wrong_json_data_error: str = "can't parser json" -cant_find_json_error: str = "can't find json" -cant_save_json_error: str = "can't save json" -cant_generate_json_report: str = "can't generate json report" +cant_reformat_json_error: str = "can't reformat JSON: is the type correct?" +wrong_json_data_error: str = "can't parse JSON" +cant_find_json_error: str = "can't find JSON file" +cant_save_json_error: str = "can't save JSON file" +cant_generate_json_report: str = "can't generate JSON report" + # executor error -executor_data_error: str = "executor receive wrong data" -executor_list_error: str = "executor receive wrong data list is none or wrong type" +executor_data_error: str = "executor received invalid data" +executor_list_error: str = "executor received invalid data: list is empty or wrong type" + # HTML -html_generate_no_data_tag: str = "record is None" +html_generate_no_data_tag: str = "no records to generate HTML report" + # add command -add_command_exception_tag: str = "command value type should be as method or function" +add_command_exception_tag: str = "command value type must be a method or function" + # 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 = "can't 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" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 10c8784..d3ad605 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ -# Rename to dev version -# This is dev version +# Rename to stable version +# This is stable version [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] -name = "je_load_density_dev" -version = "0.0.74" +name = "je_load_density" +version = "0.0.62" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] @@ -38,4 +38,4 @@ content-type = "text/markdown" find = { namespaces = false } [project.optional-dependencies] -gui = ["PySide6==6.9.1", "qt-material"] \ No newline at end of file +gui = ["PySide6==6.9.1", "qt-material"]