From c3282d359d1892b4569801ad36e5140512a8ac13 Mon Sep 17 00:00:00 2001 From: JeffreyChen Date: Thu, 3 Aug 2023 17:19:01 +0800 Subject: [PATCH 1/3] Update dev and stable Update dev and stable version * Now new log file will replace old log not append --- .idea/WebRunner.iml | 2 +- .idea/misc.xml | 2 +- dev.toml | 2 +- je_web_runner/utils/logging/loggin_instance.py | 2 +- pyproject.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.idea/WebRunner.iml b/.idea/WebRunner.iml index 683d363..74d515a 100644 --- a/.idea/WebRunner.iml +++ b/.idea/WebRunner.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index f5addb8..4c3b080 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/dev.toml b/dev.toml index 9ac325f..0ba3666 100644 --- a/dev.toml +++ b/dev.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "je_web_runner_dev" -version = "0.0.76" +version = "0.0.77" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] diff --git a/je_web_runner/utils/logging/loggin_instance.py b/je_web_runner/utils/logging/loggin_instance.py index 8163696..b7e55b4 100644 --- a/je_web_runner/utils/logging/loggin_instance.py +++ b/je_web_runner/utils/logging/loggin_instance.py @@ -10,6 +10,6 @@ stream_handler.setLevel(logging.WARNING) web_runner_logger.addHandler(stream_handler) # File handler -file_handler = logging.FileHandler("WEBRunner.log") +file_handler = logging.FileHandler(filename="WEBRunner.log", mode="w") file_handler.setFormatter(formatter) web_runner_logger.addHandler(file_handler) diff --git a/pyproject.toml b/pyproject.toml index 90df57b..dfcbb7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "je_web_runner" -version = "0.0.46" +version = "0.0.47" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] From 0f4f52d2910dba167a1cc9382b114a45643d2184 Mon Sep 17 00:00:00 2001 From: JeffreyChen Date: Thu, 3 Aug 2023 17:43:05 +0800 Subject: [PATCH 2/3] Now test scheduled Now test scheduled --- .github/workflows/webrunner_dev_python3_10.yml | 2 ++ .github/workflows/webrunner_dev_python3_11.yml | 2 ++ .github/workflows/webrunner_dev_python3_8.yml | 2 ++ .github/workflows/webrunner_dev_python3_9.yml | 2 ++ .github/workflows/webrunner_stable_python3_10.yml | 2 ++ .github/workflows/webrunner_stable_python3_11.yml | 2 ++ .github/workflows/webrunner_stable_python3_8.yml | 2 ++ .github/workflows/webrunner_stable_python3_9.yml | 2 ++ 8 files changed, 16 insertions(+) diff --git a/.github/workflows/webrunner_dev_python3_10.yml b/.github/workflows/webrunner_dev_python3_10.yml index 153d26c..38e2250 100644 --- a/.github/workflows/webrunner_dev_python3_10.yml +++ b/.github/workflows/webrunner_dev_python3_10.yml @@ -5,6 +5,8 @@ on: branches: [ "dev" ] pull_request: branches: [ "dev" ] + schedule: + - cron: "0 7 * * *" permissions: contents: read diff --git a/.github/workflows/webrunner_dev_python3_11.yml b/.github/workflows/webrunner_dev_python3_11.yml index 3ed398a..b6167b8 100644 --- a/.github/workflows/webrunner_dev_python3_11.yml +++ b/.github/workflows/webrunner_dev_python3_11.yml @@ -5,6 +5,8 @@ on: branches: [ "dev" ] pull_request: branches: [ "dev" ] + schedule: + - cron: "0 7 * * *" permissions: contents: read diff --git a/.github/workflows/webrunner_dev_python3_8.yml b/.github/workflows/webrunner_dev_python3_8.yml index 9abc281..88acee0 100644 --- a/.github/workflows/webrunner_dev_python3_8.yml +++ b/.github/workflows/webrunner_dev_python3_8.yml @@ -5,6 +5,8 @@ on: branches: [ "dev" ] pull_request: branches: [ "dev" ] + schedule: + - cron: "0 7 * * *" permissions: contents: read diff --git a/.github/workflows/webrunner_dev_python3_9.yml b/.github/workflows/webrunner_dev_python3_9.yml index 0ae070c..31a0fa8 100644 --- a/.github/workflows/webrunner_dev_python3_9.yml +++ b/.github/workflows/webrunner_dev_python3_9.yml @@ -5,6 +5,8 @@ on: branches: [ "dev" ] pull_request: branches: [ "dev" ] + schedule: + - cron: "0 7 * * *" permissions: contents: read diff --git a/.github/workflows/webrunner_stable_python3_10.yml b/.github/workflows/webrunner_stable_python3_10.yml index dd41cfa..f4ef22a 100644 --- a/.github/workflows/webrunner_stable_python3_10.yml +++ b/.github/workflows/webrunner_stable_python3_10.yml @@ -5,6 +5,8 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + schedule: + - cron: "0 7 * * *" permissions: contents: read diff --git a/.github/workflows/webrunner_stable_python3_11.yml b/.github/workflows/webrunner_stable_python3_11.yml index d26971b..f0d1c97 100644 --- a/.github/workflows/webrunner_stable_python3_11.yml +++ b/.github/workflows/webrunner_stable_python3_11.yml @@ -5,6 +5,8 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + schedule: + - cron: "0 7 * * *" permissions: contents: read diff --git a/.github/workflows/webrunner_stable_python3_8.yml b/.github/workflows/webrunner_stable_python3_8.yml index b7b8f57..2fc05ab 100644 --- a/.github/workflows/webrunner_stable_python3_8.yml +++ b/.github/workflows/webrunner_stable_python3_8.yml @@ -5,6 +5,8 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + schedule: + - cron: "0 7 * * *" permissions: contents: read diff --git a/.github/workflows/webrunner_stable_python3_9.yml b/.github/workflows/webrunner_stable_python3_9.yml index d92af0e..2d9b350 100644 --- a/.github/workflows/webrunner_stable_python3_9.yml +++ b/.github/workflows/webrunner_stable_python3_9.yml @@ -5,6 +5,8 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + schedule: + - cron: "0 7 * * *" permissions: contents: read From 38e51a16a5a3a47c7daddd93a8ca332e12922df3 Mon Sep 17 00:00:00 2001 From: JeffreyChen Date: Thu, 3 Aug 2023 17:55:50 +0800 Subject: [PATCH 3/3] use specify version webdriver-manager use specify version webdriver-manager --- pyproject.toml | 14 +++++++------- dev.toml => stable.toml | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) rename dev.toml => stable.toml (82%) diff --git a/pyproject.toml b/pyproject.toml index dfcbb7e..01a6dc1 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_web_runner" -version = "0.0.47" +name = "je_web_runner_dev" +version = "0.0.78" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] @@ -17,11 +17,11 @@ dependencies = [ "selenium>=4.0.0", 'requests', 'python-dotenv', - "webdriver-manager", + "webdriver-manager==3.8.6", "APScheduler", ] classifiers = [ - "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.7", "Development Status :: 2 - Pre-Alpha", "Environment :: Win32 (MS Windows)", "Environment :: MacOS X", diff --git a/dev.toml b/stable.toml similarity index 82% rename from dev.toml rename to stable.toml index 0ba3666..20a076c 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_web_runner_dev" -version = "0.0.77" +name = "je_web_runner" +version = "0.0.48" authors = [ { name = "JE-Chen", email = "jechenmailman@gmail.com" }, ] @@ -17,11 +17,11 @@ dependencies = [ "selenium>=4.0.0", 'requests', 'python-dotenv', - "webdriver-manager", + "webdriver-manager==3.8.6", "APScheduler", ] classifiers = [ - "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Development Status :: 2 - Pre-Alpha", "Environment :: Win32 (MS Windows)", "Environment :: MacOS X",