File tree 4 files changed +4
-17
lines changed
Filter options
4 files changed +4
-17
lines changed
Original file line number Diff line number Diff line change 12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- branch : ["origin/main", "3.13", "3.12", "3.11", "3.10" ]
15
+ branch : ["origin/main", "3.13", "3.12"]
16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
- uses : actions/setup-python@v5
56
56
matrix :
57
57
os : ["ubuntu-latest", "windows-latest"]
58
58
# Test minimum supported and latest stable from 3.x series
59
- python-version : ["3.10 ", "3"]
59
+ python-version : ["3.12 ", "3"]
60
60
steps :
61
61
- uses : actions/checkout@v4
62
62
- uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 5
5
import argparse
6
6
import ast
7
7
import subprocess
8
+ import tomllib
8
9
from pathlib import Path
9
10
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
-
20
11
PROJECT_DIR = Path (__file__ ).resolve ().parent
21
12
PYPROJECT_TOML = PROJECT_DIR / "pyproject.toml"
22
13
INIT_PY = PROJECT_DIR / "python_docs_theme" / "__init__.py"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ description = "The Sphinx theme for the CPython docs and related projects"
10
10
readme = " README.md"
11
11
license.file = " LICENSE"
12
12
authors = [ { name = " PyPA" , email = " distutils-sig@python.org" } ]
13
- requires-python = " >=3.10 "
13
+ requires-python = " >=3.12 "
14
14
classifiers = [
15
15
" Development Status :: 5 - Production/Stable" ,
16
16
" Framework :: Sphinx :: Theme" ,
@@ -19,8 +19,6 @@ classifiers = [
19
19
" Operating System :: OS Independent" ,
20
20
" Programming Language :: Python" ,
21
21
" Programming Language :: Python :: 3 :: Only" ,
22
- " Programming Language :: Python :: 3.10" ,
23
- " Programming Language :: Python :: 3.11" ,
24
22
" Programming Language :: Python :: 3.12" ,
25
23
" Programming Language :: Python :: 3.13" ,
26
24
" Topic :: Documentation" ,
Original file line number Diff line number Diff line change 1
1
# for babel_runner.py
2
- setuptools
3
2
Babel
4
3
Jinja2
5
- tomli ; python_version < "3.11"
You can’t perform that action at this time.
0 commit comments