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..ba6296f 100644 --- a/dev.toml +++ b/dev.toml @@ -6,18 +6,18 @@ build-backend = "setuptools.build_meta" [project] name = "je_load_density_dev" -version = "0.0.73" +version = "0.0.75" 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/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 416a019..d3ad605 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,18 +6,18 @@ build-backend = "setuptools.build_meta" [project] name = "je_load_density" -version = "0.0.60" +version = "0.0.62" 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",