From 63bd6b6f01ca36ef537f7598350f00a57d2bf2ad Mon Sep 17 00:00:00 2001 From: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:24:06 +0300 Subject: [PATCH] Drop Python 3.8 support. Test 3.12 final and 3.13-dev (#448) --- .github/workflows/tests.yaml | 8 ++++---- pyproject.toml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 26859e7..c9a94db 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -33,9 +33,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12-dev'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13-dev'] os: [ubuntu-latest, macos-latest, windows-latest] - continue-on-error: ${{ matrix.python-version == '3.12-dev' }} + continue-on-error: ${{ matrix.python-version == '3.13-dev' }} steps: - uses: actions/checkout@v3 @@ -54,7 +54,7 @@ jobs: pytest --cov --cov-fail-under=100 - name: Report coverage - if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8' + if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' uses: codecov/codecov-action@v2 allgood: @@ -74,7 +74,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 with: - python-version: '3.8' + python-version: '3.x' - name: Install build and publish tools run: | pip install build twine diff --git a/pyproject.toml b/pyproject.toml index c3997f6..6685222 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ authors = [ { name = "Taneli Hukkinen", email = "hukkin@users.noreply.github.com" }, ] license = { file = "LICENSE" } -requires-python = ">=3.8" +requires-python = ">=3.9" dependencies = [ 'markdown-it-py >=1.0.0,<4.0.0', 'tomli >=1.1.0; python_version < "3.11"', @@ -63,10 +63,10 @@ xfail_strict = true legacy_tox_ini = ''' [tox] # Only run pytest envs when no args given to tox -envlist = py{38,39,310,311} +envlist = py{39,310,311,312,313} isolated_build = True -[testenv:py{38,39,310,311}] +[testenv:py{39,310,311,312,313}] description = run tests deps = -r tests/requirements.txt @@ -90,7 +90,7 @@ commands = pre-commit run {posargs:--all} [testenv:mypy] description = run mypy -basepython = python3.8 +basepython = python3.11 deps = -r tests/requirements.txt mypy==1.11.2