Skip to content

Commit 9a11efd

Browse files
committed
Drop support for Python 3.10 and 3.11
1 parent d528dbc commit 9a11efd

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

.github/workflows/tests.yml

Lines 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

Lines 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

Lines 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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy