From 5b33698cc7c00c6ba19babc4bb39774390ee2fd9 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Fri, 24 May 2024 15:34:38 +0200 Subject: [PATCH] Drop Python 3.9 support, require 3.10+ (#353) Following SPEC 0 Python 3.9 support is dropped for future minor and major releases, and will require Python 3.10+ from version 3.0 onwards. The main benefit of requiring Python 3.10 is that we can implement type hinting more elegant in the workbench. The 2.5.x branch will keep supporting Python 3.9. --- .github/workflows/ci.yml | 2 -- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a04becd2..919a7f5d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,8 +26,6 @@ jobs: test-mpi: true - os: ubuntu-latest python-version: "3.10" - - os: ubuntu-latest - python-version: "3.9" - os: ubuntu-latest python-version: "3.12" pip-pre: "--pre" # Installs pre-release versions of pip dependencies diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66ae0c494..78fe5d220 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: rev: v3.15.2 hooks: - id: pyupgrade - args: [--py39-plus] + args: [--py310-plus] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 # Use the ref you want to point at hooks: diff --git a/pyproject.toml b/pyproject.toml index 7f5dd8389..baa4c0350 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ authors = [ description = "Exploratory modelling in Python" readme = "README.md" license = { file="LICENSE.md" } -requires-python = ">=3.9" +requires-python = ">=3.10" classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: BSD License",