Skip to content

Drop Python 3.9 support #121

@ktaletsk

Description

@ktaletsk

Problem

Python 3.9 reaches end-of-life (EOL) on October 31, 2025 (next week). After this date, Python 3.9 will no longer receive security updates or bug fixes, making it a security risk for projects to continue supporting it.

Additionally, continuing to support Python 3.9 prevents us from leveraging modern Python features, particularly the improved type annotation syntax introduced in Python 3.10. As mentioned in #120, modern Python typing should use the | syntax (e.g., str | None) instead of the older Union syntax from the typing module, but this feature requires Python 3.10+.

Currently, the extension template requires Python 3.9+ and tests against Python 3.9 in CI, which:

  • Limits our ability to use modern Python typing features
  • Will create a security liability after EOL
  • Contradicts the goal of generating modern, best-practice code

Proposed Solution

Update minimum Python version to 3.10 by making the following changes:

  1. Update template/pyproject.toml.jinja:

    • Change line 9: requires-python = ">=3.10"
    • Remove line 21: "Programming Language :: Python :: 3.9",
  2. Update .github/workflows/main.yml:

    • Remove Python 3.9 from all test matrices:
      • Line 162: settings job
      • Line 210: server job
      • Line 340: test_isolated job
      • Line 380: theme job
      • Line 424: mimerenderer job
    • Update all matrices to use ["3.10", "3.13"] instead of ["3.9", "3.13"]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions