Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5b79510

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

File tree

4 files changed

+4
-17
lines changed
Filter options

4 files changed

+4
-17
lines changed

‎.github/workflows/tests.yml

Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+2-2Lines changed: 2 additions & 2 deletions
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

Copy file name to clipboardExpand all lines: babel_runner.py
+1-10Lines changed: 1 addition & 10 deletions
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

Copy file name to clipboardExpand all lines: pyproject.toml
+1-3Lines changed: 1 addition & 3 deletions
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 = "distutils-sig@python.org" } ]
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

Copy file name to clipboard
-2Lines changed: 0 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.