From 5f1bd6cd0d03837c93d4eb724e2e2cdfe1fb5a6c Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Thu, 26 Nov 2026 02:04:14 +0100 Subject: [PATCH 1/8] drop support for python 3.9 --- .github/workflows/main.yml | 2 +- .readthedocs.yml | 4 ++-- CHANGES.rst | 2 ++ setup.cfg | 3 +-- tox.ini | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a17a36a..afef92f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-minor-version: [9, 10, 11, 12, 13, 14, 15-dev] + python-minor-version: [10, 11, 12, 13, 14, 15-dev] name: Python 3.${{ matrix.python-minor-version }} steps: - uses: actions/checkout@v7 diff --git a/.readthedocs.yml b/.readthedocs.yml index 5ea830a..c162771 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -7,9 +7,9 @@ version: 2 # Set the version of Python and other tools you might need build: - os: ubuntu-24.04 + os: ubuntu-lts-latest tools: - python: "3.12" + python: "3" apt_packages: - graphviz diff --git a/CHANGES.rst b/CHANGES.rst index a360d0d..010dca0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,8 @@ ChangeLog +------------+---------------------------------------------------------------------+------------+ | Version | Description | Date | +============+=====================================================================+============+ +| **2.6.1** | * Drop support for Pyython 3.9 | TBA | ++------------+---------------------------------------------------------------------+------------+ | **2.6.0** | * Raise UnsupportedPlatform for any RPi.GPIO RuntimeError | 2026/08/03 | | | * Optimize viewport to skip redundant refreshes | | | | * Drop support for Python 3.8 | | diff --git a/setup.cfg b/setup.cfg index edd0a78..246333f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,7 +17,6 @@ classifiers = Topic :: System :: Hardware Topic :: System :: Hardware :: Hardware Drivers Programming Language :: Python :: 3 - Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 @@ -27,7 +26,7 @@ classifiers = [options] zip_safe = False packages = find_namespace: -python_requires = >=3.9, <4 +python_requires = >=3.10, <4 install_requires = pillow>=9.2.0 smbus2 diff --git a/tox.ini b/tox.ini index 06c2349..8f25223 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ # See LICENSE.rst for details. [tox] -envlist = py{39,310,311,312,313,314,315},qa,doc +envlist = py{310,311,312,313,314,315},qa,doc skip_missing_interpreters = True [testenv] From a2eb32d06b2a232802f0bca7138f3c7a816ca96a Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Thu, 26 Nov 2026 02:19:06 +0100 Subject: [PATCH 2/8] ci: use python3-lgpio instead --- .github/workflows/main.yml | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index afef92f..772c2cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,25 +36,7 @@ jobs: - name: Install system dependencies run: | sudo apt-get update - sudo apt-get install swig python3-setuptools python3-dev - - name: Setup lg cache - uses: actions/cache@v6 - id: lgcache - with: - path: ${{ runner.temp }}/lg - key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} - - name: Download and build lg library - if: steps.lgcache.outputs.cache-hit != 'true' - run: | - cd $RUNNER_TEMP - wget http://abyz.me.uk/lg/lg.zip - unzip lg.zip - cd lg - make - - name: Install lg library - run: | - cd $RUNNER_TEMP/lg - sudo make install + sudo apt-get install swig python3-setuptools python3-dev python3-lgpio - name: Run tests env: TOX_ENV: py3${{ matrix.python-minor-version }} From 6cac9afce3ef168b2187d5ea0075f8da4991a788 Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Thu, 26 Nov 2026 02:23:34 +0100 Subject: [PATCH 3/8] ci: use python3-rpi-lgpio --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 772c2cf..fbd79f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: - name: Install system dependencies run: | sudo apt-get update - sudo apt-get install swig python3-setuptools python3-dev python3-lgpio + sudo apt-get install swig python3-setuptools python3-dev python3-rpi-lgpio - name: Run tests env: TOX_ENV: py3${{ matrix.python-minor-version }} From 32476089855f381373d76381e7620867124aa426 Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Thu, 26 Nov 2026 02:27:55 +0100 Subject: [PATCH 4/8] ci: add liblgpio-dev --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fbd79f2..20f7924 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: - name: Install system dependencies run: | sudo apt-get update - sudo apt-get install swig python3-setuptools python3-dev python3-rpi-lgpio + sudo apt-get install swig python3-setuptools python3-dev liblgpio-dev python3-rpi-lgpio - name: Run tests env: TOX_ENV: py3${{ matrix.python-minor-version }} From a0123686856d04e948b961e508f5b6400a21c084 Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Thu, 26 Nov 2026 02:33:58 +0100 Subject: [PATCH 5/8] ignore coveralls.io linkcheck --- doc/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index e5d394d..e4460de 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (c) 2017-2023 Richard Hull and contributors +# Copyright (c) 2017-2026 Richard Hull and contributors # See LICENSE.rst for details. # luma.core documentation build configuration file, created by @@ -87,7 +87,8 @@ linkcheck_ignore = [ r'http://gnu.ethz.ch/', r'http://www.avrfreaks.net/', - r'https://www.createjs.com/' + r'https://www.createjs.com/', + r'https://coveralls.io/' ] # The name of the Pygments (syntax highlighting) style to use. From b95a64ec25286fdf2872e5d40ff3f44a1d0f5b09 Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Thu, 26 Nov 2026 02:39:29 +0100 Subject: [PATCH 6/8] ignore another one --- doc/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index e4460de..e8b953a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -88,7 +88,8 @@ r'http://gnu.ethz.ch/', r'http://www.avrfreaks.net/', r'https://www.createjs.com/', - r'https://coveralls.io/' + r'https://coveralls.io/', + r'https://pypi.org/' ] # The name of the Pygments (syntax highlighting) style to use. From 3b2685c8196e1889e13179c9f3cf9a6d10b35ba3 Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Thu, 26 Nov 2026 02:45:30 +0100 Subject: [PATCH 7/8] qa: ignore index linkcheck --- doc/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index e8b953a..d875c07 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -87,11 +87,12 @@ linkcheck_ignore = [ r'http://gnu.ethz.ch/', r'http://www.avrfreaks.net/', - r'https://www.createjs.com/', - r'https://coveralls.io/', - r'https://pypi.org/' + r'https://www.createjs.com/' ] +# exclude index linkcheck +linkcheck_exclude_documents = [r'^index$'] + # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' From c52d835582bb9c70cff9770d72f7f59254033db1 Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Thu, 26 Nov 2026 02:50:15 +0100 Subject: [PATCH 8/8] fix typo in version 2.6.1 description --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 010dca0..e1680c7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,7 @@ ChangeLog +------------+---------------------------------------------------------------------+------------+ | Version | Description | Date | +============+=====================================================================+============+ -| **2.6.1** | * Drop support for Pyython 3.9 | TBA | +| **2.6.1** | * Drop support for Python 3.9 | TBA | +------------+---------------------------------------------------------------------+------------+ | **2.6.0** | * Raise UnsupportedPlatform for any RPi.GPIO RuntimeError | 2026/08/03 | | | * Optimize viewport to skip redundant refreshes | |