From e83ea024332fb6a5a4b9e3a1b629a64f67f0953c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:13:56 +0300 Subject: [PATCH] Drop support for Python 3.8 (#598) --- .github/workflows/docs-lint.yml | 10 +++++++--- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 14 +++++++++----- .pre-commit-config.yaml | 2 +- pyproject.toml | 3 +-- tox.ini | 2 +- 6 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docs-lint.yml b/.github/workflows/docs-lint.yml index a2070444..9f764bcd 100644 --- a/.github/workflows/docs-lint.yml +++ b/.github/workflows/docs-lint.yml @@ -4,6 +4,10 @@ on: [push, pull_request, workflow_dispatch] env: FORCE_COLOR: 1 + PIP_DISABLE_PIP_VERSION_CHECK: 1 + +permissions: + contents: read jobs: build: @@ -15,12 +19,12 @@ jobs: - TOXENV: lint steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.x" cache: pip cache-dependency-path: "pyproject.toml" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d209d930..bc766f3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,12 +15,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" cache: pip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 149ba5b9..6548ce0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,23 +2,27 @@ name: Test on: [push, pull_request, workflow_dispatch] +permissions: + contents: read + env: FORCE_COLOR: 1 - + PIP_DISABLE_PIP_VERSION_CHECK: 1 + jobs: - build: + test: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] os: [ubuntu-latest, macOS-latest, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 95bcc2df..79a1169c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: rev: v3.17.0 hooks: - id: pyupgrade - args: [--py38-plus] + args: [--py39-plus] - repo: https://github.com/PyCQA/isort rev: 5.13.2 diff --git a/pyproject.toml b/pyproject.toml index 376110c4..c50880d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ maintainers = [ {name = "Hugo van Kemenade"}, {name = "Claude Paroz", email = "claude@2xlibre.net"}, ] -requires-python = ">=3.8" +requires-python = ">=3.9" classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", @@ -24,7 +24,6 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/tox.ini b/tox.ini index 746b4a5d..3a1edc32 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ minversion = 2.4 envlist = docs lint - py{38,39,310,311,312,313} + py{39,310,311,312,313} [testenv] deps =