From 51d9e1ce16b1e3995ac12c13e887ee58ee2e62e6 Mon Sep 17 00:00:00 2001 From: chrysle Date: Sat, 1 Jul 2023 09:36:31 +0200 Subject: [PATCH] Drop support for Python 3.7 (#1879) --- .github/workflows/ci.yml | 6 ++---- .github/workflows/cron.yml | 1 - .pre-commit-config.yaml | 4 ++-- pyproject.toml | 3 +-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e918ea33..fad780367 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,13 +48,12 @@ jobs: - "3.10" - "3.9" - "3.8" - - "3.7" pip-version: - "latest" - "previous" include: - os: Ubuntu - python-version: 3.7 + python-version: 3.8 pip-version: main env: TOXENV: pip${{ matrix.pip-version }}-coverage @@ -122,7 +121,7 @@ jobs: - MacOS - Windows python-version: - - pypy-3.7 + - pypy-3.8 pip-version: - latest env: @@ -153,5 +152,4 @@ jobs: - name: Decide whether the needed jobs succeeded or failed uses: re-actors/alls-green@13b4244b312e8a314951e03958a2f91519a6a3c9 with: - allowed-failures: pypy # FIXME: drop once updated to `pypy-3.8` jobs: ${{ toJSON(needs) }} diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index e08253d01..eacc649f0 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -21,7 +21,6 @@ jobs: - "3.10" - "3.9" - "3.8" - - "3.7" pip-version: - main include: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb5b54af8..a4d1086dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: rev: 23.3.0 hooks: - id: black - args: [--target-version=py37] + args: [--target-version=py38] - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: @@ -12,7 +12,7 @@ repos: rev: v3.3.1 hooks: - id: pyupgrade - args: [--py37-plus] + args: [--py38-plus] - repo: https://github.com/PyCQA/flake8 rev: 6.0.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index 47fa90566..3be6fb9ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] # https://peps.python.org/pep-0621/#readme -requires-python = ">=3.7" +requires-python = ">=3.8" dynamic = ["version"] name = "pip-tools" description = "pip-tools keeps your pinned dependencies fresh." @@ -22,7 +22,6 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: Implementation :: CPython",