From 9aba299c75dbd087428f23f4ba747821d81150cd Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 28 Nov 2025 20:55:34 +0000 Subject: [PATCH] build: increase minimum supported Python version to 3.10 Python 3.9 is not supported since 2025-10-31: https://devguide.python.org/versions/ mypy just dropped support for Python 3.9: --- .github/workflows/ci.yml | 8 ++++---- deltachat-rpc-client/pyproject.toml | 4 +--- python/pyproject.toml | 3 +-- scripts/run_all.sh | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32445b3bf..570cd45fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -246,11 +246,11 @@ jobs: - os: macos-latest python: pypy3.10 - # Minimum Supported Python Version = 3.8 + # Minimum Supported Python Version = 3.10 # This is the minimum version for which manylinux Python wheels are # built. Test it with minimum supported Rust version. - os: ubuntu-latest - python: 3.8 + python: "3.10" runs-on: ${{ matrix.os }} timeout-minutes: 60 @@ -302,9 +302,9 @@ jobs: - os: macos-latest python: pypy3.10 - # Minimum Supported Python Version = 3.8 + # Minimum Supported Python Version = 3.10 - os: ubuntu-latest - python: 3.8 + python: "3.10" runs-on: ${{ matrix.os }} timeout-minutes: 60 diff --git a/deltachat-rpc-client/pyproject.toml b/deltachat-rpc-client/pyproject.toml index b38b67cf2..178585d82 100644 --- a/deltachat-rpc-client/pyproject.toml +++ b/deltachat-rpc-client/pyproject.toml @@ -13,8 +13,6 @@ classifiers = [ "Operating System :: POSIX :: Linux", "Operating System :: MacOS :: MacOS X", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -24,7 +22,7 @@ classifiers = [ "Topic :: Communications :: Email" ] readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.10" [tool.setuptools.package-data] deltachat_rpc_client = [ diff --git a/python/pyproject.toml b/python/pyproject.toml index 34d8fa13c..34fd27a47 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -7,7 +7,7 @@ name = "deltachat" version = "2.28.0" description = "Python bindings for the Delta Chat Core library using CFFI against the Rust-implemented libdeltachat" readme = "README.rst" -requires-python = ">=3.8" +requires-python = ">=3.10" authors = [ { name = "holger krekel, Floris Bruynooghe, Bjoern Petersen and contributors" }, ] @@ -23,7 +23,6 @@ classifiers = [ dependencies = [ "cffi>=1.0.0", "imap-tools", - "importlib_metadata;python_version<'3.8'", "pluggy", "requests", ] diff --git a/scripts/run_all.sh b/scripts/run_all.sh index a93548bec..5a5ac6130 100755 --- a/scripts/run_all.sh +++ b/scripts/run_all.sh @@ -31,6 +31,6 @@ unset CHATMAIL_DOMAIN # Try to build wheels for a range of interpreters, but don't fail if they are not available. # E.g. musllinux_1_1 does not have PyPy interpreters as of 2022-07-10 -tox --workdir "$TOXWORKDIR" -e py38,py39,py310,py311,py312,py313,pypy38,pypy39,pypy310 --skip-missing-interpreters true +tox --workdir "$TOXWORKDIR" -e py310,py311,py312,py313,pypy310 --skip-missing-interpreters true auditwheel repair "$TOXWORKDIR"/wheelhouse/deltachat* -w "$TOXWORKDIR/wheelhouse"