Skip to content

Commit

Permalink
Merge pull request #1322 from qstokkink/upd_min_py39
Browse files Browse the repository at this point in the history
Update minimum Python version to 3.9
  • Loading branch information
qstokkink authored Nov 18, 2024
2 parents 658cc33 + d34e89c commit efafe2f
Show file tree
Hide file tree
Showing 100 changed files with 328 additions and 2,233 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.9'
cache: 'pip'
- run: python -m pip install -r requirements.txt
- uses: ./.github/actions/coverage
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.9'
cache: 'pip'
- uses: actions/cache/restore@v4
id: restore_cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.8
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install mypy
run: pip install mypy
- name: Run mypy
Expand Down
38 changes: 7 additions & 31 deletions .github/workflows/pr-comment-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest] # macos-latest not tested due to crashing.
version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:

set_failure_status:
if: ${{failure() && github.event.issue.pull_request && startsWith(github.event.comment.body, 'validate') }}
needs: [set_pending_status, pr_commented, validate_attestation_tutorial, validate_identity_tutorial, validate_documentation]
needs: [set_pending_status, pr_commented, validate_identity_tutorial, validate_documentation]
runs-on: ubuntu-latest
steps:
- name: Set commit failed status
Expand All @@ -89,7 +89,7 @@ jobs:

set_success_status:
if: ${{!failure() && github.event.issue.pull_request && startsWith(github.event.comment.body, 'validate') }}
needs: [set_pending_status, pr_commented, validate_attestation_tutorial, validate_identity_tutorial, validate_documentation]
needs: [set_pending_status, pr_commented, validate_identity_tutorial, validate_documentation]
runs-on: ubuntu-latest
steps:
- name: Set commit success status
Expand All @@ -104,30 +104,6 @@ jobs:
sha: ${{ env.actual_pull_head }}
target_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

validate_attestation_tutorial:
name: Validate attestation tutorial
if: ${{github.event.issue.pull_request && startsWith(github.event.comment.body, 'validate') }}
needs: set_pending_status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.issue.number }}/head
- name: Setup Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install --upgrade setuptools pip
pip install -r requirements.txt
- name: Run attestation tests
run: |
export PYTHONPATH="$(pwd)/"
cd doc/deprecated/attestation_tutorial_integration
python attestation_tutorial_attest.py
python attestation_tutorial_verify.py
validate_identity_tutorial:
name: Validate identity tutorial
if: ${{github.event.issue.pull_request && startsWith(github.event.comment.body, 'validate') }}
Expand All @@ -137,10 +113,10 @@ jobs:
- uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.issue.number }}/head
- name: Setup Python 3.8
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade setuptools pip
Expand All @@ -161,10 +137,10 @@ jobs:
- uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.issue.number }}/head
- name: Setup Python 3.8
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade setuptools pip
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/python-publish-taskmanager.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.8
- name: Setup Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install ruff
run: pip install ruff
- name: Get changed Python files
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.7'
python-version: '3.9'
cache: 'pip'
- run: python -m pip install -r requirements.txt
- name: Run unit tests
Expand All @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.9'
cache: 'pip'
- uses: actions/cache/restore@v4
id: restore_cache
Expand Down
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ line-length = 120
# Allow unused variables when underscore-prefixed.
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

target-version = "py37"
target-version = "py39"

[lint.pylint]
max-args = 6
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ Running tests can be done by running:
python3 run_all_tests.py
```

*Running the test suite on Python 3.7 requires the installation of `asynctest` (`python3 -m pip install asynctest`).*

Running code coverage requires the `coverage` package (`python3 -m pip install coverage`).
A coverage report can be generated by running:

Expand Down
Loading

0 comments on commit efafe2f

Please sign in to comment.