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 }} diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 1c7639b..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.7', '3.12' ] + python-version: [ '3.9', '3.12' ] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index ce0af34..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.7+ +- 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/requirements.txt b/requirements.txt index fe4f68b..1bdb3e1 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.0, <3.0 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 diff --git a/setup.py b/setup.py index ca16bac..c589cc6 100644 --- a/setup.py +++ b/setup.py @@ -35,9 +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", "Programming Language :: Python :: 3.11", 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