Skip to content

Remove Python 3.10 - #135

Merged
hagenw merged 2 commits into
mainfrom
remove-python-3.10
Sep 15, 2026
Merged

hagenw merged 2 commits into
mainfrom
remove-python-3.10

Conversation

@hagenw

@hagenw hagenw commented Sep 15, 2026

Copy link
Copy Markdown
Member

Removes support for Python 3.10 and adjusts code and dependencies to use new features of Python 3.11.

🤖 Generated with Claude Code

@sourcery-ai

sourcery-ai Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR removes Python 3.10 and older support by requiring Python 3.11+, narrowing CI coverage to 3.11–3.13, and standardizing tooling and release workflows on Python 3.12. It also adopts the Python 3.11 stdlib tomllib module for Sphinx configuration, eliminating the toml dependency and its pre-commit compatibility workaround.

Sequence diagram for Sphinx configuration loading

sequenceDiagram
    participant Sphinx
    participant DocsConfig as docs/conf.py
    participant Python as Python 3.11+ stdlib
    participant File as pyproject.toml

    Sphinx->>DocsConfig: load configuration
    DocsConfig->>Python: open(..., "rb")
    Python-->>DocsConfig: file object
    DocsConfig->>Python: tomllib.load(fp)
    Python->>File: read TOML
    File-->>Python: parsed TOML data
    Python-->>DocsConfig: config
    DocsConfig-->>Sphinx: configuration ready
Loading

File-Level Changes

Change Details Files
Raise the project’s supported and CI Python versions from 3.9/3.10 to Python 3.11+, with automation standardized on Python 3.12.
  • Set the package requirement to Python >=3.11 and remove 3.9/3.10 classifiers.
  • Drop Python 3.9 and 3.10 from the test matrix.
  • Update documentation, linting, and publishing workflows and pre-commit to use Python 3.12.
.github/workflows/doc.yml
.github/workflows/linter.yml
.github/workflows/publish.yml
.github/workflows/test.yml
.pre-commit-config.yaml
pyproject.toml
Replace the third-party TOML parser with Python 3.11’s standard-library TOML support.
  • Load pyproject.toml with tomllib in binary mode.
  • Remove the toml development dependency and the pre-commit tomli workaround.
docs/conf.py
.pre-commit-config.yaml
pyproject.toml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Sep 15, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@sourcery-ai
sourcery-ai Bot dismissed their stale review September 15, 2026 11:52

Sourcery withdrew this approval because the latest commits introduced blocking findings.

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 <noreply@anthropic.com>
@hagenw
hagenw merged commit 844da7d into main Sep 15, 2026
14 checks passed
@hagenw
hagenw deleted the remove-python-3.10 branch September 15, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant