Sphinx 8.0.0__py3-none-any.whl → 8.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of Sphinx might be problematic. Click here for more details.

sphinx/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """The Sphinx documentation toolchain."""
2
2
 
3
- __version__ = '8.0.0'
3
+ __version__ = '8.0.1'
4
4
  __display_version__ = __version__ # used for command line version
5
5
 
6
6
  # Keep this file executable as-is in Python 3!
@@ -27,7 +27,7 @@ warnings.filterwarnings(
27
27
  #:
28
28
  #: .. versionadded:: 1.2
29
29
  #: Before version 1.2, check the string ``sphinx.__version__``.
30
- version_info = (8, 0, 0, 'final', 0)
30
+ version_info = (8, 0, 1, 'final', 0)
31
31
 
32
32
  package_dir = os.path.abspath(os.path.dirname(__file__))
33
33
 
sphinx/highlighting.py CHANGED
@@ -6,6 +6,7 @@ from functools import partial
6
6
  from importlib import import_module
7
7
  from typing import TYPE_CHECKING, Any
8
8
 
9
+ import pygments
9
10
  from pygments import highlight
10
11
  from pygments.filters import ErrorToken
11
12
  from pygments.formatters import HtmlFormatter, LatexFormatter
@@ -30,6 +31,11 @@ if TYPE_CHECKING:
30
31
  from pygments.lexer import Lexer
31
32
  from pygments.style import Style
32
33
 
34
+ if tuple(map(int, pygments.__version__.split('.')))[:2] < (2, 18):
35
+ from pygments.formatter import Formatter # NoQA: F811
36
+
37
+ Formatter.__class_getitem__ = lambda cls, name: cls # type: ignore[attr-defined]
38
+
33
39
  logger = logging.getLogger(__name__)
34
40
 
35
41
  lexers: dict[str, Lexer] = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Sphinx
3
- Version: 8.0.0
3
+ Version: 8.0.1
4
4
  Summary: Python documentation generator
5
5
  Author-email: Georg Brandl <georg@python.org>
6
6
  Requires-Python: >=3.10
@@ -1,4 +1,4 @@
1
- sphinx/__init__.py,sha256=j8tp2Q76mUQfRwCBx_Cwrq9ZG4mSgyog1Iqypn07dNs,1690
1
+ sphinx/__init__.py,sha256=IYvLXGko1qr-XQa1i5kBPsQqPj5x_AOBpvSjMh0rI3w,1690
2
2
  sphinx/__main__.py,sha256=wIifwXlZHdi4gtQmkJ6KF0BsflvD9o0Wd5nARTdJc8A,127
3
3
  sphinx/addnodes.py,sha256=EQTIi9Zta6DaNa-2WGE3l9AVjdp7WzwwrfwRnax8vXE,18707
4
4
  sphinx/application.py,sha256=yhOkhP56wzskzmi5sjiAEqt1i_AE4jLGWDeWkLPvvZ0,57793
@@ -7,7 +7,7 @@ sphinx/deprecation.py,sha256=E8lNCClHC1Mt2IiXNYp5oULqukUjfvSnHqUmDXfvobw,2438
7
7
  sphinx/errors.py,sha256=mFyE7P1fmnVTeYtpP3wv8oXrKyTw1H0WcE46VypUPd0,3412
8
8
  sphinx/events.py,sha256=rZkchR3dFN54FG5pc4k9yrImicSCmjOHyoJd187R4sM,4415
9
9
  sphinx/extension.py,sha256=F4AZzY3BAVRXaeE3p0CYFM4TJ24GESuxjk6z0gtdJ4o,3169
10
- sphinx/highlighting.py,sha256=ECKagCnRgMVViFEymgENRjE87YTNHcglyxe84SzdcGA,7412
10
+ sphinx/highlighting.py,sha256=JwZ7R9RxP32d3b6Frca97BvdHyjAZ1Zh_0p5yRKCegA,7642
11
11
  sphinx/io.py,sha256=C0yF1BMsMPiaWJ16uKjIDZ4wgpQ4kwJ8mw1syTEFkTc,6186
12
12
  sphinx/jinja2glue.py,sha256=_G9x8uypW9kAlMGGSkectaN4VIosDi0SXn_2qFe91_4,7463
13
13
  sphinx/parsers.py,sha256=86Yn9xUBWWe8FxvDf1_BlEzqvSDZ8AMFeYJCbx7AtMQ,3179
@@ -583,8 +583,8 @@ sphinx/writers/manpage.py,sha256=7RFc0CEnUyejf5vEp9M18JnZS6lv8ZxOvq3Y2KgNQdQ,162
583
583
  sphinx/writers/texinfo.py,sha256=2XL6KCGBOeFCs1wu0gInQ6ALssgGvPeKlnmoSJ9ce1s,53470
584
584
  sphinx/writers/text.py,sha256=SYlQC54pxkiF8nNJCthDwa2m7Sb2UKmRS-jC-SjFn84,43006
585
585
  sphinx/writers/xml.py,sha256=4rj6wdeMFqR-aE6MR_j2VvdKL3cRLv_qgB8wSARkc3s,1546
586
- sphinx-8.0.0.dist-info/entry_points.txt,sha256=KU_c9jqXj7yyZylSz11XRIXG3gAZApQa0d5DmcfyA7M,188
587
- sphinx-8.0.0.dist-info/LICENSE.rst,sha256=HdZPUFcmQaLySBc9fKvRC5aOUNkxL9Gz5py0p6XGDk4,3135
588
- sphinx-8.0.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
589
- sphinx-8.0.0.dist-info/METADATA,sha256=JwrMIOhR4pDVWKMTbxpLIMFL3AjQ9clvjEFWYPvSfgU,6205
590
- sphinx-8.0.0.dist-info/RECORD,,
586
+ sphinx-8.0.1.dist-info/entry_points.txt,sha256=KU_c9jqXj7yyZylSz11XRIXG3gAZApQa0d5DmcfyA7M,188
587
+ sphinx-8.0.1.dist-info/LICENSE.rst,sha256=HdZPUFcmQaLySBc9fKvRC5aOUNkxL9Gz5py0p6XGDk4,3135
588
+ sphinx-8.0.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
589
+ sphinx-8.0.1.dist-info/METADATA,sha256=3r6CBIGc2VUGpwJFxaZ6JhdCLSHGT3w9ggQImn2XM3c,6205
590
+ sphinx-8.0.1.dist-info/RECORD,,
File without changes