From e9cc4bdcb6fdfe429f6e7bbe5e781e984b3861a6 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Tue, 15 Sep 2026 13:31:43 +0200 Subject: [PATCH 1/2] Remove Python 3.10 Co-Authored-By: Claude Fable 5.1 --- .github/workflows/doc.yml | 2 +- .github/workflows/linter.yml | 4 ++-- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 2 +- .pre-commit-config.yaml | 4 +--- docs/conf.py | 6 +++--- pyproject.toml | 5 +---- 7 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index d9118c7..f629d82 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - python-version: [ '3.10' ] + python-version: [ '3.12' ] steps: - uses: actions/checkout@v7 diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 05bf670..c7506d9 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -14,10 +14,10 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Set up Python 3.10 + - name: Set up Python 3.12 uses: actions/setup-python@v7 with: - python-version: '3.10' + python-version: '3.12' - name: Set up uv uses: astral-sh/setup-uv@v9.0.0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9aca02e..2bdd4f9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v7 with: - python-version: '3.10' + python-version: '3.12' - name: Set up uv uses: astral-sh/setup-uv@v9.0.0 @@ -83,7 +83,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v7 with: - python-version: '3.10' + python-version: '3.12' - name: Set up uv uses: astral-sh/setup-uv@v9.0.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2170f98..efbb399 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, windows-latest, macos-latest ] - python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ] + python-version: [ '3.11', '3.12', '3.13' ] steps: - uses: actions/checkout@v7 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4b10603..034e578 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ # # default_language_version: - python: python3.10 + python: python3.12 repos: - repo: https://github.com/astral-sh/ruff-pre-commit @@ -22,5 +22,3 @@ repos: rev: v2.3.0 hooks: - id: codespell - additional_dependencies: - - tomli diff --git a/docs/conf.py b/docs/conf.py index 127c346..d942741 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,13 +1,13 @@ from datetime import date import os import shutil - -import toml +import tomllib import audeer -config = toml.load(audeer.path("..", "pyproject.toml")) +with open(audeer.path("..", "pyproject.toml"), "rb") as fp: + config = tomllib.load(fp) # Project ----------------------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index f25caa7..663fe73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,14 +25,12 @@ classifiers = [ 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', 'Topic :: Scientific/Engineering', ] -requires-python = '>=3.9' +requires-python = '>=3.11' dependencies = [ 'audobject >=0.6.1', 'audinterface >=0.7.0', @@ -61,7 +59,6 @@ dev = [ 'sphinx-audeering-theme >=1.2.1', 'sphinx-autodoc-typehints', 'sphinx-copybutton', - 'toml', ] From 671c4550b4c78e458806665aa137baa89c5f5290 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Tue, 15 Sep 2026 15:09:38 +0200 Subject: [PATCH 2/2] Use raw string for config example in docs Python 3.12 warns about the invalid escape sequences in the openSMILE config example, and the docs build treats warnings as errors. Co-Authored-By: Claude Fable 5.1 --- docs/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index 089fdbc..87db3de 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -145,7 +145,7 @@ We can create a custom config. .. jupyter-execute:: - config_str = """ + config_str = r""" [componentInstances:cComponentManager] instance[dataMemory].type=cDataMemory