@@ -13,7 +13,7 @@ urls.Download = "https://pypi.org/project/Sphinx/"
1313urls.Homepage = " https://www.sphinx-doc.org/"
1414urls."Issue tracker" = " https://github.com/sphinx-doc/sphinx/issues"
1515license.text = " BSD-2-Clause"
16- requires-python = " >=3.8 "
16+ requires-python = " >=3.9 "
1717
1818# Classifiers list: https://pypi.org/classifiers/
1919classifiers = [
@@ -30,10 +30,10 @@ classifiers = [
3030 " Programming Language :: Python" ,
3131 " Programming Language :: Python :: 3" ,
3232 " Programming Language :: Python :: 3 :: Only" ,
33- " Programming Language :: Python :: 3.8" ,
3433 " Programming Language :: Python :: 3.9" ,
3534 " Programming Language :: Python :: 3.10" ,
3635 " Programming Language :: Python :: 3.11" ,
36+ " Programming Language :: Python :: 3.12" ,
3737 " Programming Language :: Python :: Implementation :: CPython" ,
3838 " Programming Language :: Python :: Implementation :: PyPy" ,
3939 " Framework :: Sphinx" ,
@@ -134,7 +134,7 @@ profile = "black"
134134remove_redundant_aliases = true
135135
136136[tool .ruff ]
137- target-version = " py38 " # Pin Ruff to Python 3.8
137+ target-version = " py39 " # Pin Ruff to Python 3.9
138138line-length = 95
139139show-source = true
140140exclude = [
@@ -286,6 +286,9 @@ select = [
286286"sphinx/environment/adapters/toctree.py" = [" B026" ]
287287
288288"tests/*" = [" E501" ]
289+ # these tests need old ``typing`` generic aliases
290+ "tests/test_util_typing.py" = [" UP006" , " UP035" ]
291+ "tests/typing_test_data.py" = [" UP006" , " UP035" ]
289292
290293[tool .ruff .flake8-quotes ]
291294inline-quotes = " single"
@@ -296,7 +299,7 @@ disallow_incomplete_defs = true
296299follow_imports = " skip"
297300ignore_missing_imports = true
298301no_implicit_optional = true
299- python_version = " 3.8 "
302+ python_version = " 3.9 "
300303show_column_numbers = true
301304show_error_codes = true
302305show_error_context = true
0 commit comments