From 61702678ef687f599d1d92d8333b211382bdef44 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Mon, 4 May 2026 00:31:51 +0300 Subject: [PATCH] chore: update Python version requirements and add support for Python 3.14 --- .github/workflows/ci.yml | 5 +---- CONTRIBUTING.md | 1 + pyproject.toml | 8 ++++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70e730b..29b8e45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,11 +49,11 @@ jobs: fail-fast: false matrix: py: - - 3.9 - "3.10" - "3.11" - "3.12" - "3.13" + - "3.14" platform: - ubuntu-latest - macos-latest @@ -75,9 +75,6 @@ jobs: file_handler.write(env) - name: Install dependencies run: pip install -U hatch - - name: Patch virtualenv on Python3.9 - if: matrix.py == '3.9' - run: pip install --force-reinstall "virtualenv<21" - name: Run tests run: | hatch run +py=${{ steps.env.outputs.py }} tests:all diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c829a33..e9f78d7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -37,3 +37,4 @@ git push origin "v$version" ## Compatibility Latest version supporting Python3.7 and Mkdocs<1.4.0 is v4.0.4. +Latest version supporting Python3.9 is v7.2.2. diff --git a/pyproject.toml b/pyproject.toml index 19cf415..b53a8b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ version = "7.2.2" description = "Mkdocs Markdown includer plugin." readme = "README.md" license = "Apache-2.0" -requires-python = ">=3.9" +requires-python = ">=3.10" classifiers = [ "Development Status :: 5 - Production/Stable", "Operating System :: OS Independent", @@ -15,11 +15,11 @@ classifiers = [ "Topic :: Text Processing", "Topic :: Text Processing :: Markup :: Markdown", "Environment :: Console", - "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", + "Programming Language :: Python :: 3.14", ] keywords = ["markdown", "mkdocs", "includer", "plugin"] dependencies = [ @@ -73,7 +73,7 @@ matrix-name-format = "{variable}-{value}" dependencies = ["pytest~=7.0", "coverage~=6.4", "covdefaults"] [[tool.hatch.envs.tests.matrix]] -python = ["py39", "py310", "py311", "py312", "py313"] +python = ["py310", "py311", "py312", "py313", "py314"] mkdocs = ["1.4.0", "1.4.3", "1.5.0", "1.5.3", "1.6.0"] cache = ["yes", "no"] @@ -121,7 +121,7 @@ fail_under = 1 [tool.ruff] line-length = 80 -target-version = "py39" +target-version = "py310" [tool.ruff.lint] select = [