Skip to content

Commit 469a809

Browse files
authored
Increase minimum required dependency versions (#12556)
1 parent d2f4266 commit 469a809

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Dependencies
55
------------
66

77
* #12555: Drop Docutils 0.18.1 and Docutils 0.19 support.
8-
Patch by Adam Turner
8+
Patch by Adam Turner.
99

1010
Incompatible changes
1111
--------------------

pyproject.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ dependencies = [
6262
"sphinxcontrib-htmlhelp>=2.0.0",
6363
"sphinxcontrib-serializinghtml>=1.1.9",
6464
"sphinxcontrib-qthelp",
65-
"Jinja2>=3.0",
66-
"Pygments>=2.14",
65+
"Jinja2>=3.1",
66+
"Pygments>=2.17",
6767
"docutils>=0.20,<0.22",
68-
"snowballstemmer>=2.0",
69-
"babel>=2.9",
68+
"snowballstemmer>=2.2",
69+
"babel>=2.13",
7070
"alabaster~=0.7.14",
7171
"imagesize>=1.3",
72-
"requests>=2.25.0",
73-
"packaging>=21.0",
74-
"importlib-metadata>=4.8; python_version < '3.10'",
72+
"requests>=2.30.0",
73+
"packaging>=23.0",
74+
"importlib-metadata>=6.0; python_version < '3.10'",
7575
"tomli>=2; python_version < '3.11'",
7676
"colorama>=0.4.6; sys_platform == 'win32'",
7777
]
@@ -82,22 +82,22 @@ docs = [
8282
"sphinxcontrib-websupport",
8383
]
8484
lint = [
85-
"flake8>=3.5.0",
85+
"flake8>=6.0",
8686
"ruff==0.5.1",
8787
"mypy==1.10.1",
88-
"sphinx-lint",
88+
"sphinx-lint>=0.9",
8989
"types-docutils==0.21.0.20240711",
90-
"types-requests",
91-
"importlib_metadata", # for mypy (Python<=3.9)
92-
"tomli", # for mypy (Python<=3.10)
90+
"types-requests>=2.30.0", # align with requests
91+
"importlib-metadata>=6.0", # for mypy (Python<=3.9)
92+
"tomli>=2", # for mypy (Python<=3.10)
9393
"pytest>=6.0",
9494
]
9595
test = [
96-
"pytest>=6.0",
96+
"pytest>=8.0",
9797
"defusedxml>=0.7.1", # for secure XML/HTML parsing
9898
"cython>=3.0",
99-
"setuptools>=67.0", # for Cython compilation
100-
"typing_extensions", # for typing_extensions.Unpack
99+
"setuptools>=70.0", # for Cython compilation
100+
"typing_extensions>=4.9", # for typing_extensions.Unpack
101101
]
102102

103103
[[project.authors]]

tests/test_util/test_util_i18n.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,10 @@ def test_format_date():
7575
format = '%x'
7676
assert i18n.format_date(format, date=datet, language='en') == 'Feb 7, 2016'
7777
format = '%X'
78-
if BABEL_VERSION >= (2, 12):
79-
assert i18n.format_date(format, date=datet, language='en') == '5:11:17\u202fAM'
80-
else:
81-
assert i18n.format_date(format, date=datet, language='en') == '5:11:17 AM'
78+
assert i18n.format_date(format, date=datet, language='en') == '5:11:17\u202fAM'
8279
assert i18n.format_date(format, date=date, language='en') == 'Feb 7, 2016'
8380
format = '%c'
84-
if BABEL_VERSION >= (2, 12):
85-
assert i18n.format_date(format, date=datet, language='en') == 'Feb 7, 2016, 5:11:17\u202fAM'
86-
else:
87-
assert i18n.format_date(format, date=datet, language='en') == 'Feb 7, 2016, 5:11:17 AM'
81+
assert i18n.format_date(format, date=datet, language='en') == 'Feb 7, 2016, 5:11:17\u202fAM'
8882
assert i18n.format_date(format, date=date, language='en') == 'Feb 7, 2016'
8983

9084
# timezone

0 commit comments

Comments
 (0)