Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Py312 #523

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Py312 #523

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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'
Expand Down Expand Up @@ -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:

Expand All @@ -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: |
Expand Down
18 changes: 10 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Loading