From 0e9646ca40034c8833fd4cde2c78e95f9858d429 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 30 Sep 2024 23:32:39 +0300 Subject: [PATCH] Drop support for Python 3.7 and 3.8 (#355) --- .github/workflows/main.yml | 6 ++---- .github/workflows/mypy.yml | 10 +++------- .github/workflows/publish.yml | 4 ++-- pyproject.toml | 4 ++-- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c5d530d..970e7401 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,9 +2,7 @@ name: test on: push: - branches: [main] pull_request: - branches: [main] schedule: # Midnight UTC: - cron: "0 0 * * *" @@ -23,7 +21,7 @@ jobs: matrix: # Test all supported versions on Ubuntu: os: [ubuntu-latest] - python: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python: ["3.9", "3.10", "3.11", "3.12"] experimental: [false] build: [''] include: @@ -56,7 +54,7 @@ jobs: with: python-version: ${{ matrix.python }} - name: Set up Python ${{ matrix.python }} using deadsnakes - uses: deadsnakes/action@v3.1.0 + uses: deadsnakes/action@v3.2.0 if: "endsWith(matrix.python, '-dev')" with: python-version: ${{ matrix.python }} diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index d9fb4a66..61159e4e 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -1,10 +1,6 @@ name: mypy -on: - push: - branches: [main] - pull_request: - workflow_dispatch: +on: [push, pull_request, workflow_dispatch] permissions: contents: read @@ -18,8 +14,8 @@ jobs: name: Check code with mypy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: cache: "pip" cache-dependency-path: "pyproject.toml" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 315e95bf..35106833 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,9 +15,9 @@ jobs: id-token: write 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.x' cache: pip diff --git a/pyproject.toml b/pyproject.toml index e5ea4dd0..da88a7b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,7 @@ classifiers = [ 'Programming Language :: Python :: 3', 'Programming Language :: Python', ] -requires-python = ">=3.7" +requires-python = ">=3.9" dependencies = [ "pyperf", "tomli; python_version < '3.11'", @@ -85,7 +85,7 @@ find = {} # Scanning implicit namespaces is active by default version = {attr = "pyperformance.__version__"} [tool.mypy] -python_version = "3.7" +python_version = "3.9" pretty = true enable_error_code = "ignore-without-code" disallow_any_generics = true