From 9eb18f3d0b4d3c8896317857a5885810de6951ce Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Tue, 15 Jul 2025 18:32:13 +0700 Subject: [PATCH 1/5] Update vulnerable versions of dependencies --- requirements.txt | 4 ++-- scripts/run_snippet.sh | 4 ++-- scripts/run_snippets.sh | 0 3 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 scripts/run_snippet.sh mode change 100644 => 100755 scripts/run_snippets.sh diff --git a/requirements.txt b/requirements.txt index fe4f68b..2a269c3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -certifi >= 2017.4.17 +certifi >= 2024.7.4 python-dateutil >= 2.1 -urllib3 >= 1.21.1, <2.0 +urllib3 ~= 2.5 diff --git a/scripts/run_snippet.sh b/scripts/run_snippet.sh old mode 100644 new mode 100755 index b86f58e..5dda509 --- a/scripts/run_snippet.sh +++ b/scripts/run_snippet.sh @@ -8,6 +8,6 @@ SCRIPT_DIR=$3 CONFIG_FILE_PATH=$4 echo "Run snippet file: $FILE_PATH" -python ${SCRIPT_DIR}/insert-credentials.py $FILE_PATH $CONFIG_FILE_PATH $RUN_DIR +python "${SCRIPT_DIR}/insert-credentials.py" "$FILE_PATH" "$CONFIG_FILE_PATH" "$RUN_DIR" -python ./$RUN_DIR/"${FILE_PATH##*/}" || exit 1 \ No newline at end of file +python "./$RUN_DIR/${FILE_PATH##*/}" || exit 1 diff --git a/scripts/run_snippets.sh b/scripts/run_snippets.sh old mode 100644 new mode 100755 From d6623579819541c4666f1ea1bffba290c3eea1d1 Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Tue, 15 Jul 2025 18:42:22 +0700 Subject: [PATCH 2/5] Drop old Python 3.7 --- .github/workflows/python-package.yml | 2 +- README.md | 2 +- setup.py | 2 -- test-requirements.txt | 5 ++--- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 1c7639b..282e070 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: # see https://www.python.org/downloads/ - python-version: [ '3.7', '3.12' ] + python-version: [ '3.8', '3.12' ] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index ce0af34..ebaaea4 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This repository contains Aspose.BarCode Cloud SDK for Python source code. This S Supported Python versions: -- Python 3.7+ +- Python 3.8+ To use these SDKs, you will need Client Id and Client Secret which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/applications) (free registration in Aspose Cloud is required for this). diff --git a/setup.py b/setup.py index ca16bac..4a708da 100644 --- a/setup.py +++ b/setup.py @@ -35,8 +35,6 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", diff --git a/test-requirements.txt b/test-requirements.txt index 1880f74..3f240b6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,5 @@ pytest pytest-cov requests -mock; python_version < "3" -black; python_version > "3.7" -check-python-versions; python_version > "3.7" +black +check-python-versions From 2cf506717b82551cb37f57fdce01654a229769b0 Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Tue, 15 Jul 2025 18:46:08 +0700 Subject: [PATCH 3/5] Change urllib3 version selector --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2a269c3..1bdb3e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ certifi >= 2024.7.4 python-dateutil >= 2.1 -urllib3 ~= 2.5 +urllib3 >= 2.5.0, <3.0 From cb086cdaa804107148d6f65f8fceee474fddf64b Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Tue, 15 Jul 2025 18:49:59 +0700 Subject: [PATCH 4/5] Drop old Python 3.8 support --- .github/workflows/python-package.yml | 2 +- README.md | 2 +- setup.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 282e070..3ad9d4d 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: # see https://www.python.org/downloads/ - python-version: [ '3.8', '3.12' ] + python-version: [ '3.9', '3.12' ] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index ebaaea4..bcb3436 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This repository contains Aspose.BarCode Cloud SDK for Python source code. This S Supported Python versions: -- Python 3.8+ +- Python 3.9+ To use these SDKs, you will need Client Id and Client Secret which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/applications) (free registration in Aspose Cloud is required for this). diff --git a/setup.py b/setup.py index 4a708da..c589cc6 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,6 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", From fd28c621b625d6d170b760148b1232b36964845b Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Tue, 15 Jul 2025 18:52:08 +0700 Subject: [PATCH 5/5] Fix check_python_versions script --- .github/workflows/python-latest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-latest.yml b/.github/workflows/python-latest.yml index 4277c97..ef11384 100644 --- a/.github/workflows/python-latest.yml +++ b/.github/workflows/python-latest.yml @@ -52,7 +52,7 @@ jobs: python -m pip install -r requirements.txt -r test-requirements.txt - name: Lint run: | - python -m check_python_versions --expect 3.6- --only setup.py + python -m check_python_versions --expect 3.9- --only setup.py - name: Test env: TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}