Skip to content

Commit fbd09aa

Browse files
committed
Add Python 3.14 to build and remove EOL 3.9
1 parent d9a889d commit fbd09aa

16 files changed

Lines changed: 64 additions & 157 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.12.1
3+
rev: v0.15.6
44
hooks:
55
- id: ruff-check
66
args: [--fix]
@@ -12,6 +12,6 @@ repos:
1212
- id: clang-format
1313

1414
- repo: https://github.com/RobertCraigie/pyright-python
15-
rev: v1.1.402
15+
rev: v1.1.408
1616
hooks:
1717
- id: pyright

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v0.7.3 (unreleased):
2+
3+
- Add support for Python 3.14 and drop end-of-life 3.9.
4+
15
v0.7.2 (released July 1, 2025):
26

37
- Fix building on non-CPython implementations like PyPy. (#341)

docs/changelog.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
=========
33

4+
v0.7.3
5+
------
6+
7+
Unreleased
8+
(`changes <https://github.com/earwig/mwparserfromhell/compare/v0.7.2...main>`__):
9+
10+
- Add support for Python 3.14 and drop end-of-life 3.9.
11+
412
v0.7.2
513
------
614

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ keywords = [
1111
"mwparserfromhell", "wikipedia", "wiki", "mediawiki", "wikicode", "wikitext"
1212
]
1313
readme = "README.rst"
14-
requires-python = ">= 3.9"
14+
requires-python = ">= 3.10"
1515
dependencies = []
1616
classifiers = [
1717
"Development Status :: 4 - Beta",
1818
"Environment :: Console",
1919
"Intended Audience :: Developers",
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",
2524
"Programming Language :: Python :: 3.12",
2625
"Programming Language :: Python :: 3.13",
26+
"Programming Language :: Python :: 3.14",
2727
"Topic :: Text Processing :: Markup",
2828
]
2929

@@ -59,13 +59,13 @@ test-command = [
5959
]
6060

6161
[tool.pyright]
62-
pythonVersion = "3.9"
62+
pythonVersion = "3.10"
6363
typeCheckingMode = "standard"
6464
venvPath = "."
6565
venv = ".venv"
6666

6767
[tool.ruff]
68-
target-version = "py39"
68+
target-version = "py310"
6969

7070
[tool.ruff.lint]
7171
extend-select = [

scripts/memtest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
from os import listdir, path
3939

4040
import psutil
41-
4241
from mwparserfromhell.parser._tokenizer import CTokenizer
4342

4443
LOOPS = 10000

src/mwparserfromhell/nodes/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
from __future__ import annotations
2222

23-
from collections.abc import Generator
24-
from typing import TYPE_CHECKING, Any, Callable
23+
from collections.abc import Callable, Generator
24+
from typing import TYPE_CHECKING, Any
2525

2626
from ..string_mixin import StringMixIn
2727

src/mwparserfromhell/nodes/argument.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
from __future__ import annotations
2222

23-
from collections.abc import Generator
24-
from typing import TYPE_CHECKING, Any, Callable
23+
from collections.abc import Callable, Generator
24+
from typing import TYPE_CHECKING, Any
2525

2626
from ..utils import parse_anything
2727
from ._base import Node

src/mwparserfromhell/nodes/external_link.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
from __future__ import annotations
2222

23-
from collections.abc import Generator
24-
from typing import TYPE_CHECKING, Any, Callable
23+
from collections.abc import Callable, Generator
24+
from typing import TYPE_CHECKING, Any
2525

2626
from ..utils import parse_anything
2727
from ._base import Node

src/mwparserfromhell/nodes/heading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
from __future__ import annotations
2222

23-
from collections.abc import Generator
24-
from typing import TYPE_CHECKING, Any, Callable
23+
from collections.abc import Callable, Generator
24+
from typing import TYPE_CHECKING, Any
2525

2626
from ..utils import parse_anything
2727
from ._base import Node

src/mwparserfromhell/nodes/tag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
from __future__ import annotations
2222

23-
from collections.abc import Generator
24-
from typing import TYPE_CHECKING, Any, Callable
23+
from collections.abc import Callable, Generator
24+
from typing import TYPE_CHECKING, Any
2525

2626
from ..definitions import is_visible
2727
from ..utils import parse_anything

0 commit comments

Comments
 (0)