From 3905ba5e8cbfb1b1e657f3855cb73321b05b97e5 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 11 Oct 2026 11:09:23 +0200 Subject: [PATCH] Drop support for Python 3.10 end of life --- .github/workflows/test.yml | 6 +++--- .github/workflows/wheels.yml | 2 +- .readthedocs.yaml | 2 +- METADATA.in | 2 +- README.rst | 2 +- meson.build | 2 +- pyproject.toml | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a55c8864..5b378b67 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -76,7 +76,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t', '3.15', '3.15t', 'pypy-3.11'] + python-version: ['3.11', '3.12', '3.13', '3.14', '3.14t', '3.15', '3.15t', 'pypy-3.11'] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -138,11 +138,11 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t', '3.15', '3.15t', 'pypy-3.11'] + python-version: ['3.11', '3.12', '3.13', '3.14', '3.14t', '3.15', '3.15t', 'pypy-3.11'] architecture: ['x64'] os: ['windows-2022'] include: - - python-version: '3.10' + - python-version: '3.11' architecture: 'x86' os: 'windows-2022' - python-version: '3.14' diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index cee6fdd7..b8e4068c 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -70,7 +70,7 @@ jobs: env: CFLAGS: "-DCAIRO_WIN32_STATIC_BUILD=1" CIBW_BEFORE_BUILD: "python {package}/.ci/download-cairo-win32.py ${{ matrix.arch }}" - CIBW_BUILD: cp310-${{ matrix.platform_id }} cp311-${{ matrix.platform_id }} cp312-${{ matrix.platform_id }} cp313-${{ matrix.platform_id }} cp314-${{ matrix.platform_id }} cp314t-${{ matrix.platform_id }} cp315-${{ matrix.platform_id }} cp315t-${{ matrix.platform_id }} + CIBW_BUILD: cp311-${{ matrix.platform_id }} cp312-${{ matrix.platform_id }} cp313-${{ matrix.platform_id }} cp314-${{ matrix.platform_id }} cp314t-${{ matrix.platform_id }} cp315-${{ matrix.platform_id }} cp315t-${{ matrix.platform_id }} CIBW_SKIP: cp314t-win32 cp315-win32 cp315t-win32 CIBW_TEST_REQUIRES: pytest==8.3.5 CIBW_TEST_COMMAND: bash {package}/.ci/test-wheels.sh {package} diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 42ff87eb..e88e6c7a 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.10" + python: "3.11" sphinx: configuration: docs/conf.py diff --git a/METADATA.in b/METADATA.in index e0aed6dc..80682102 100644 --- a/METADATA.in +++ b/METADATA.in @@ -6,4 +6,4 @@ Maintainer-Email: Christoph Reiter License: LGPL-2.1-only OR MPL-1.1 Project-URL: Homepage, https://pycairo.readthedocs.io Project-URL: Source, https://github.com/pygobject/pycairo -Requires-Python: >=3.10 +Requires-Python: >=3.11 diff --git a/README.rst b/README.rst index 9c170cdf..6aa43433 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ Pycairo is a Python module providing bindings for the `cairo graphics library `__. It depends on **cairo >= 1.15.10** and works -with **Python 3.10+** and **PyPy3**. Pycairo, including this documentation, is +with **Python 3.11+** and **PyPy3**. Pycairo, including this documentation, is licensed under the `LGPL-2.1-only OR MPL-1.1 `__. The Pycairo bindings are designed to match the cairo C API as closely as diff --git a/meson.build b/meson.build index 1ce1adae..c94c1727 100644 --- a/meson.build +++ b/meson.build @@ -10,7 +10,7 @@ project( ) cair_version_req = '>=1.15.10' -python_version_req = '>=3.10' +python_version_req = '>=3.11' pymod = import('python') python = pymod.find_installation(get_option('python'), pure: false) diff --git a/pyproject.toml b/pyproject.toml index a96b589d..fe014fb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "pycairo" version = "1.29.3" description = "Python interface for cairo" readme = "README.rst" -requires-python = ">=3.10" +requires-python = ">=3.11" license = {text = "LGPL-2.1-only OR MPL-1.1"} maintainers = [{name = "Christoph Reiter", email = "reiter.christoph@gmail.com"}] urls = {Homepage = "https://pycairo.readthedocs.io", Source = "https://github.com/pygobject/pycairo"}