Skip to content

Commit 11128f9

Browse files
build: Upgrade sphinx and remove packaging upper bound (#8183)
Remove `packaging` upper bound to resolve `virtualenv` vulnerability reports. Remove `sphinx` upper bound, since the `sphinx` version required legacy `packaging` versions. Remove legacy from `docs/conf.py` that caused exceptions on new `sphinx` versions.
1 parent e4b36ad commit 11128f9

3 files changed

Lines changed: 30 additions & 33 deletions

File tree

‎docs/conf.py‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
import os
22
import sys
3-
import typing
43
from datetime import datetime
54

6-
# prevent circular imports
7-
import sphinx.builders.html
8-
import sphinx.builders.latex
9-
import sphinx.builders.texinfo
10-
import sphinx.builders.text
11-
import sphinx.domains.c # noqa: F401
12-
import sphinx.domains.cpp # noqa: F401
13-
import sphinx.ext.autodoc # noqa: F401
14-
import sphinx.ext.intersphinx # noqa: F401
15-
import urllib3.exceptions # noqa: F401
16-
17-
typing.TYPE_CHECKING = True
18-
195
#
206
# Configuration file for the Sphinx documentation builder.
217
#

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ dev = [
1616

1717
toxgen = [
1818
"jinja2",
19-
"packaging<26.0",
19+
"packaging",
2020
"pip",
2121
"requests",
2222
]
2323

2424
docs = [
2525
"gevent",
2626
"shibuya",
27-
"sphinx<8.2",
27+
"sphinx",
2828
"sphinx-autodoc-typehints[type_comments]>=2.3.0",
2929
"typing-extensions",
3030
]

‎uv.lock‎

Lines changed: 28 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)