Skip to content

Commit 2c2cbb1

Browse files
committed
build: Drop support for Python 3.10
1 parent 7275d14 commit 2c2cbb1

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [{name = "Timothée Mazzucotelli", email = "[email protected]"}]
99
license = "ISC"
1010
license-files = ["LICENSE"]
1111
readme = "README.md"
12-
requires-python = ">=3.10"
12+
requires-python = ">=3.11"
1313
keywords = ["mkdocs", "mkdocs-plugin", "docstrings", "autodoc", "documentation"]
1414
dynamic = ["version"]
1515
classifiers = [
@@ -18,7 +18,6 @@ classifiers = [
1818
"Programming Language :: Python",
1919
"Programming Language :: Python :: 3",
2020
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
2322
"Programming Language :: Python :: 3.12",
2423
"Programming Language :: Python :: 3.13",
@@ -109,8 +108,6 @@ ci = [
109108
"markdown-callouts>=0.4",
110109
"markdown-exec>=1.8",
111110
"mkdocstrings[python]>=0.29",
112-
# YORE: EOL 3.10: Remove line.
113-
"tomli>=2.0; python_version < '3.11'",
114111
"zensical>=0.0.21",
115112
]
116113

‎scripts/gen_credits.py‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,18 @@
2020

2121
from __future__ import annotations
2222

23-
import sys
2423
from collections import defaultdict
2524
from collections.abc import Iterable
2625
from importlib.metadata import distributions
2726
from itertools import chain
2827
from pathlib import Path
2928
from textwrap import dedent
3029

30+
import tomllib
3131
from jinja2 import StrictUndefined
3232
from jinja2.sandbox import SandboxedEnvironment
3333
from packaging.requirements import Requirement
3434

35-
# YORE: EOL 3.10: Replace block with line 2.
36-
if sys.version_info >= (3, 11):
37-
import tomllib
38-
else:
39-
import tomli as tomllib
40-
4135
project_dir = Path.cwd()
4236
with project_dir.joinpath("pyproject.toml").open("rb") as pyproject_file:
4337
pyproject = tomllib.load(pyproject_file)

0 commit comments

Comments
 (0)