From 974bb084c0df603811ec957763f3939a7059e71d Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Sat, 21 Sep 2024 21:34:54 +0300 Subject: [PATCH] py312 --- .github/workflows/check.yml | 11 ++++++++++- .github/workflows/fuzz.yml | 2 +- .github/workflows/test.yml | 8 +++++--- requirements.txt | 18 ++++++++++-------- 4 files changed, 26 insertions(+), 13 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index cf7f01eda..7a3d96109 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -68,7 +68,7 @@ jobs: id: setup_python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install CredSweeper and auxiliary packages id: setup_credsweeper @@ -97,6 +97,10 @@ jobs: if: ${{ always() && steps.setup_credsweeper.conclusion == 'success' }} run: pylint --py-version=3.11 --errors-only credsweeper + - name: Analysing the code with pylint and minimum Python version 3.12 + if: ${{ always() && steps.setup_credsweeper.conclusion == 'success' }} + run: pylint --py-version=3.12 --errors-only credsweeper + # # # mypy - name: Analysing the code with mypy and minimum Python version 3.8 @@ -119,6 +123,11 @@ jobs: run: | mypy --config-file .mypy.ini --python-version=3.11 credsweeper + - name: Analysing the code with mypy and minimum Python version 3.12 + if: ${{ always() && steps.setup_credsweeper.conclusion == 'success' }} + run: | + mypy --config-file .mypy.ini --python-version=3.12 credsweeper + # # # documentation - name: Analysing the code with pylint for NEW missed docstrings of classes or functions diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 90bfd3cb7..c1b7b3478 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -31,7 +31,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 35364c333..63d176c0b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: @@ -44,7 +44,8 @@ jobs: - name: Install application run: | - pip install . + python -m pip install . + python -m pip freeze - name: Remove sources dir to check installation if: runner.os != 'Windows' @@ -75,7 +76,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: @@ -93,6 +94,7 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install --requirement requirements.txt + python -m pip freeze - name: UnitTest with pytest and coverage run: | diff --git a/requirements.txt b/requirements.txt index 654affe8b..653d8d5a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,31 +1,33 @@ # Common requirements beautifulsoup4==4.12.3 -cryptography==43.0.1 -GitPython==3.1.41 +cryptography==42.0.5 +GitPython==3.1.42 google-auth-oauthlib==1.2.0 humanfriendly==10.0 lxml==5.1.0 oauthlib==3.2.2 openpyxl==3.1.2 -pandas==2.0.3 +pandas==2.0.3; python_version < '3.12' # ^ the version supports by python 3.8 +pandas==2.2.1; python_version == '3.12' PyYAML==6.0.1 python-docx==1.1.0 requests==2.32.0 -typing_extensions==4.9.0 -whatthepatch==1.0.6 +typing_extensions==4.10.0 +whatthepatch==1.0.5 pdfminer.six==20231228 password-strength==0.0.3.post2 -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 pyjks==20.0.0 pybase62==1.0.0 base58==2.1.1 # ML requirements -numpy==1.24.4 +numpy==1.24.4; python_version < '3.12' # ^ the version supports python 3.8-3.11 # ^ todo: check for py3.12 later https://github.com/numpy/numpy/issues/23808 -scipy==1.10.1 +numpy==1.26.4; python_version == '3.12' +scipy==1.10.1; python_version < '3.12' # ^ the version supports python 3.8 onnxruntime==1.18.0