Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9a11efd

Browse files
committed
Drop support for Python 3.10 and 3.11
1 parentd528dbc commit9a11efd

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
importargparse
66
importast
77
importsubprocess
8+
importtomllib
89
frompathlibimportPath
910

10-
try:
11-
importtomllib
12-
exceptImportError:
13-
try:
14-
importtomliastomllib
15-
exceptImportErrorasie:
16-
raiseImportError(
17-
"tomli or tomllib is required to parse pyproject.toml"
18-
)fromie
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)

[8]ページ先頭

©2009-2025 Movatter.jp