Skip to content

Commit ca56680

Browse files
authored
Update vulnerable versions of dependencies (#92)
* Update vulnerable versions of dependencies * Drop old Python 3.7 and 3.8 * Fix check_python_versions script
1 parent bfb0f30 commit ca56680

File tree

8 files changed

+9
-13
lines changed

8 files changed

+9
-13
lines changed

.github/workflows/python-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
python -m pip install -r requirements.txt -r test-requirements.txt
5353
- name: Lint
5454
run: |
55-
python -m check_python_versions --expect 3.6- --only setup.py
55+
python -m check_python_versions --expect 3.9- --only setup.py
5656
- name: Test
5757
env:
5858
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
# see https://www.python.org/downloads/
20-
python-version: [ '3.7', '3.12' ]
20+
python-version: [ '3.9', '3.12' ]
2121

2222
steps:
2323
- uses: actions/checkout@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This repository contains Aspose.BarCode Cloud SDK for Python source code. This S
2626

2727
Supported Python versions:
2828

29-
- Python 3.7+
29+
- Python 3.9+
3030

3131
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).
3232

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
certifi >= 2017.4.17
1+
certifi >= 2024.7.4
22
python-dateutil >= 2.1
3-
urllib3 >= 1.21.1, <2.0
3+
urllib3 >= 2.5.0, <3.0

scripts/run_snippet.sh

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ SCRIPT_DIR=$3
88
CONFIG_FILE_PATH=$4
99
echo "Run snippet file: $FILE_PATH"
1010

11-
python ${SCRIPT_DIR}/insert-credentials.py $FILE_PATH $CONFIG_FILE_PATH $RUN_DIR
11+
python "${SCRIPT_DIR}/insert-credentials.py" "$FILE_PATH" "$CONFIG_FILE_PATH" "$RUN_DIR"
1212

13-
python ./$RUN_DIR/"${FILE_PATH##*/}" || exit 1
13+
python "./$RUN_DIR/${FILE_PATH##*/}" || exit 1

scripts/run_snippets.sh

100644100755
File mode changed.

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
"License :: OSI Approved :: MIT License",
3636
"Operating System :: OS Independent",
3737
"Programming Language :: Python :: 3",
38-
"Programming Language :: Python :: 3.6",
39-
"Programming Language :: Python :: 3.7",
40-
"Programming Language :: Python :: 3.8",
4138
"Programming Language :: Python :: 3.9",
4239
"Programming Language :: Python :: 3.10",
4340
"Programming Language :: Python :: 3.11",

test-requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pytest
22
pytest-cov
33
requests
4-
mock; python_version < "3"
5-
black; python_version > "3.7"
6-
check-python-versions; python_version > "3.7"
4+
black
5+
check-python-versions

0 commit comments

Comments
 (0)