Skip to content

Commit 5b79510

Browse files
authored
Drop support for Python 3.10 and 3.11 (#234)
1 parent d528dbc commit 5b79510

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
branch: ["origin/main", "3.13", "3.12", "3.11", "3.10"]
15+
branch: ["origin/main", "3.13", "3.12"]
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-python@v5
@@ -56,7 +56,7 @@ jobs:
5656
matrix:
5757
os: ["ubuntu-latest", "windows-latest"]
5858
# Test minimum supported and latest stable from 3.x series
59-
python-version: ["3.10", "3"]
59+
python-version: ["3.12", "3"]
6060
steps:
6161
- uses: actions/checkout@v4
6262
- uses: actions/setup-python@v5

babel_runner.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,9 @@
55
import argparse
66
import ast
77
import subprocess
8+
import tomllib
89
from pathlib import Path
910

10-
try:
11-
import tomllib
12-
except ImportError:
13-
try:
14-
import tomli as tomllib
15-
except ImportError as ie:
16-
raise ImportError(
17-
"tomli or tomllib is required to parse pyproject.toml"
18-
) from ie
19-
2011
PROJECT_DIR = Path(__file__).resolve().parent
2112
PYPROJECT_TOML = PROJECT_DIR / "pyproject.toml"
2213
INIT_PY = PROJECT_DIR / "python_docs_theme" / "__init__.py"

pyproject.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "The Sphinx theme for the CPython docs and related projects"
1010
readme = "README.md"
1111
license.file = "LICENSE"
1212
authors = [ { name = "PyPA", email = "[email protected]" } ]
13-
requires-python = ">=3.10"
13+
requires-python = ">=3.12"
1414
classifiers = [
1515
"Development Status :: 5 - Production/Stable",
1616
"Framework :: Sphinx :: Theme",
@@ -19,8 +19,6 @@ classifiers = [
1919
"Operating System :: OS Independent",
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3 :: Only",
22-
"Programming Language :: Python :: 3.10",
23-
"Programming Language :: Python :: 3.11",
2422
"Programming Language :: Python :: 3.12",
2523
"Programming Language :: Python :: 3.13",
2624
"Topic :: Documentation",

requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# for babel_runner.py
2-
setuptools
32
Babel
43
Jinja2
5-
tomli; python_version < "3.11"

0 commit comments

Comments
 (0)